1 Reply Latest reply on Apr 24, 2009 3:31 PM by Michael Borbor

    File createDirectory()

    josh_aries Level 1

      Hi All,

          I am trying to create a directory . Below is my code.

       

      when I specify the below stmt it works.But I dont want to specify the drive name.

       

       

      destinationDirectory.nativePath ="C:/workspace/test/"+applicationId+"/"+sourceFile.name;

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      var

       

       

       

       

       

       

      destinationDirectory : File = new File("/workspace/test/"+applicationId+"/"+sourceFile.name);

       

      destinationDirectory .createDirectory();

       

      I get the following Error

       

      Error: Error #3003: File or directory does not exist.

       

      Thank You.