jsfl 删除复制文件

/**
 * 将采用平台特有格式的文件名转换为 file:/// URL
 * @param	path     路径(str)
 */
function file_toPath (path) {
	if (file_isUrl(path)) {
		return path;
	} else {
		path = path.split("\").join("/").split(":").join("|");
		return mainURL = "file:///" + path;
		//return FLfile.platformPathToURI(path);
	}
}

newFlaURLNew = outPutUrl + "" + bsName+".fla";	
			if (FLfile.exists(newFlaURLNew)) {
				FLfile.remove(newFlaURLNew);
			}
			file_newFile(newFlaURLNew);
			FLfile.copy(newFlaURL, newFlaURLNew);	

  

原文地址:https://www.cnblogs.com/dt1991/p/13985290.html