Ok - I downloaded Guy's FileSystem extension and there is something called
FileSystem.copyFolder( param1, param2 );
which rocks. But I want to get the base folder & copy it... when i do this:
var folderURI = fl.browseForFolderURL( "choose folder to copy to class
location" );
that gives me the CONTENTS of the folder, not the folder itself. So what
ends up happening, I copy all of the contents of the folder, not the main
folder itself.
How do I get that folder as the file URI ?
My code:
var folderURI = fl.browseForFolderURL( "JSFL PACKAGE INSTALATION\n\n\nPlease
select the class package (folder) you wish to install:", "directories" );
if( folderURI == null ){
alert( "Aborting Installation" );
} else {
continueProcess();
}
function continueProcess(){
var classLocation = fl.configURI + "Classes";
var bInstall = confirm("Would you like to install the package\nthat you
selcted at this location:\n\n" + folderURI + "?");
if( bInstall == true ){
FileSystem.copyFolder( folderURI, classLocation );
alert( "The Package has been installed." );
} else {
alert( "Installation cancelled." );
}
}
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com