If no baseDir is given it will try to add the structure to the existing
root directory without replacing existing childs except those with equal
names.
File permissions are copied as well.
Please note that file contents will only be copied if their file size
does not exceed the given $maxFileSize which defaults to 1024 KB. In case
the file is larger file content will be mocked, see
https://github.com/mikey179/vfsStream/wiki/MockingLargeFiles.
public static copyFromFileSystem ( string $path, |
||
$path | string | path to copy the structure from |
$baseDir | directory to add the structure to | |
$maxFileSize | integer | maximum file size of files to copy content from |
return |