0 Replies Latest reply on Oct 5, 2009 8:48 AM by aya

    AIR copyToAsync copies only files not the folder


      hello everyone


      I have the following code which im using to move a folder into another folder.


            var myA:File = File.desktopDirectory.resolvePath("one")
            var myB:File = File.desktopDirectory.resolvePath("two")
            myA.copyToAsync(myB, true);


      my problem is the above code only copies the files. How can I make AIR copy the folder as well.

      And why do I have to use the optional "true" to make the code work.


      any help will be appreciated