Reads the directory_mode param as 'raw' type to mirror the same behavior as mode. This'll cause non-quoted values to be represented as an int, rather than a str. Covered by 'assert recursive copied directories mode' test. Fixes #24202