move. Moving or renaming a file


The method renames/moves file or directory (under Win32, objects cannot be moved to another disk). New directories are created with file permissions
755. The directory of the old file is deleted if it is found empty after the file is moved.

$.keep-empty-dirs(true)-preserve empty directories after the file is moved.

Note: you should be very careful with everything that involves writing within web-space, as this feature (writing something to somewhere) is now widely used by malicious users.



Will move file1 into root directory.

Copyright © 1997–2021 Art. Lebedev Studio | Last updated: 23.10.2013