FileUtil.CopyFileOrDirectoryFollowSymlinks 从跟随符合复制文件或文件夹
static function CopyFileOrDirectoryFollowSymlinks (from : string, to : string) : void
Description描述
Copies a file or a directory.
复制文件或者文件夹。
Copies from from path to the destination, to, path.
从路径复制from到目的地to。
In presence of symbolic links (OS X only), the actual files to which symbolic links point to are copied, not the symbolic links themselves.
大体语意是:实际拷贝的是指定文件夹下的文件,并不包含这个指定的文件夹。
@MenuItem ("Example/Copy SymLink Something")
static function CopyAFile () {
// copies the file "YourFileOrFolder" from "sLPath/" to "copySL/path/"
//从"sLPath/"复制YourFileOrFolder,到"copySL/path/"
FileUtil.CopyFileOrDirectoryFollowSymlinks (
"sLPath/YourFileOrFolder",
"copySL/path/YourFileOrFolder");
}
参见:FileUtil.CopyFileOrDirectory.
最后修改:2011年5月7日 Saturday 11:03