FileSystem.copyFolder() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to FileSystem Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.FileSystem.copyFolder(copyFrom:String, copyTo:String):Void

Parameters
copyFrom:String - Path of folder to be copied
copyTo:String - Path of folder to be created

Returns
Boolean - status of operation

Description
Copies the specified folder to the specified location. When error occurs during operation (for whatever reason) the false is returned by method. For example it could be returned if invalid path was passed as one of arguments.

Notes
Please note that return type of that method is changed compared to version Zinc 3.0

Example Code
var copied:Boolean = mdm.FileSystem.copyFolder(originalFolder, targetFolder);
//
mdm.FileSystem.copyFolder("c:\\myFolderA", "c:\\otherFolder\\newFolder");

mdm.FileSystem Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page