Okay cool, because when I get the folderURI - I alert through and its
correct, the copyFolder operation, using folderURI actuallly copies the
contents INSIDE the folderURI, and not the folderURI itself - frustrating!

-edolecki


On 2/16/06, Johannes Nel <[EMAIL PROTECTED]> wrote:
>
> hang on 5 minutes. i almost have it working using flFile, which will make
> it
> Mac usable as well/
>
> On 2/16/06, eric dolecki <[EMAIL PROTECTED]> wrote:
> >
> > 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
> >
>
>
>
> --
> j:pn
> _______________________________________________
> [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
>
_______________________________________________
[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

Reply via email to