User Tools

Site Tools


en:code:data:file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:code:data:file [2011/12/11 14:17] – [copy] jmgren:code:data:file [2021/02/13 11:23] (current) – external edit 127.0.0.1
Line 36: Line 36:
     * noConfirmDialog - (bool) should a confirmation dialog be shown if needed (Windows only, default: true)     * noConfirmDialog - (bool) should a confirmation dialog be shown if needed (Windows only, default: true)
     * noProgressDialog - (bool) should a progress dialog be shown (Windows only, default: true)     * noProgressDialog - (bool) should a progress dialog be shown (Windows only, default: true)
-    * allowUndo - (bool) should the file/directory be moved to the trash bin (Windows only, default: false) 
     * createDestinationDirectory - (bool) should the destination directory be created if it doesn't exist (Linux only, default: true)     * createDestinationDirectory - (bool) should the destination directory be created if it doesn't exist (Linux only, default: true)
  
Line 44: Line 43:
 === Exceptions === === Exceptions ===
   * (ParameterCountError) incorrect parameter count   * (ParameterCountError) incorrect parameter count
-  * (DirectoryCreationError) unable to create the destination directory +  * (DirectoryCreationError) unable to create the destination directory (Linux only) 
-  * (DirectoryDoesntExistError) the destination directory doesn't exist+  * (DirectoryDoesntExistError) the destination directory doesn't exist (Linux only)
   * (CopyError) copy failed   * (CopyError) copy failed
 +  * (CopyAbortedError) copy aborted (Windows only)
  
 ==== move ==== ==== move ====
Line 56: Line 56:
 </code> </code>
 <code javascript> <code javascript>
-File.move(source, destination, createDestinationDirectory);+File.move(source, destination, options);
 </code> </code>
  
Line 62: Line 62:
   - source - (string) the source file to move   - source - (string) the source file to move
   - destination - (string) the destination file/directory   - destination - (string) the destination file/directory
-  - createDestinationDirectory - (boolean) should the destination directory be created if it doesn't exist (default: true)+  - options - (object) [//Added in Actionaz 3.0.1.//] 
 +    * noErrorDialog - (bool) should an error dialog be shown if an error occurs (Windows only, default: true) 
 +    * noConfirmDialog - (bool) should a confirmation dialog be shown if needed (Windows only, default: true) 
 +    * noProgressDialog - (bool) should a progress dialog be shown (Windows only, default: true) 
 +    * createDestinationDirectory - (bool) should the destination directory be created if it doesn't exist (Linux only, default: true)
  
 === Returns === === Returns ===
Line 68: Line 72:
  
 === Exceptions === === Exceptions ===
-  * (DirectoryCreationError) unable to create the destination directory +  * (ParameterCountError) incorrect parameter count 
-  * (DirectoryDoesntExistError) the destination directory doesn't exist +  * (DirectoryCreationError) unable to create the destination directory (Linux only) 
-  * (MoveRenameError) move failed+  * (DirectoryDoesntExistError) the destination directory doesn't exist (Linux only) 
 +  * (MoveError) move failed 
 +  * (MoveAbortedError) move aborted (Windows only)
  
 ==== rename ==== ==== rename ====
-This method is an alias of the [[#move|move]] method.+This function is an alias of the [[#move|move]] function.
  
 ==== remove ==== ==== remove ====
Line 81: Line 87:
 <code javascript> <code javascript>
 File.remove(filename); File.remove(filename);
 +</code>
 +<code javascript>
 +File.remove(filename, options);
 </code> </code>
  
 === Arguments === === Arguments ===
   - filename - (string) the file to remove   - filename - (string) the file to remove
 +  - options - (object) [//Added in Actionaz 3.0.1.//]
 +    * noErrorDialog - (bool) should an error dialog be shown if an error occurs (Windows only, default: true)
 +    * noConfirmDialog - (bool) should a confirmation dialog be shown if needed (Windows only, default: true)
 +    * noProgressDialog - (bool) should a progress dialog be shown (Windows only, default: true)
 +    * allowUndo - (bool) should the file/directory be moved to the trash bin (Windows only, default: false)
  
 === Returns === === Returns ===
Line 90: Line 104:
  
 === Exceptions === === Exceptions ===
 +  * (ParameterCountError) incorrect parameter count
   * (RemoveError) remove failed   * (RemoveError) remove failed
 +  * (RemoveAbortedError) remove aborted (Windows only)
  
 ===== Methods ===== ===== Methods =====
Line 201: Line 217:
 </code> </code>
 <code javascript> <code javascript>
-myObject.copy(destination, createDestinationDirectory);+myObject.copy(destination, options);
 </code> </code>
  
 === Arguments === === Arguments ===
   - destination - (string) the location where to copy the file   - destination - (string) the location where to copy the file
-  - createDestinationDirectory - (boolean) should the destination directory be created if it doesn't exist (default: true)+  - options - (object) [//Added in Actionaz 3.0.1.//] 
 +    * noErrorDialog - (bool) should an error dialog be shown if an error occurs (Windows only, default: true) 
 +    * noConfirmDialog - (bool) should a confirmation dialog be shown if needed (Windows only, default: true) 
 +    * noProgressDialog - (bool) should a progress dialog be shown (Windows only, default: true) 
 +    * createDestinationDirectory - (bool) should the destination directory be created if it doesn't exist (Linux only, default: true)
  
 === Returns === === Returns ===
Line 212: Line 232:
  
 === Exceptions === === Exceptions ===
-  * (DirectoryCreationError) unable to create the destination directory +  * (ParameterCountError) incorrect parameter count 
-  * (DirectoryDoesntExistError) the destination directory doesn't exist+  * (DirectoryCreationError) unable to create the destination directory (Linux only) 
 +  * (DirectoryDoesntExistError) the destination directory doesn't exist (Linux only)
   * (CopyError) copy failed   * (CopyError) copy failed
 +  * (CopyAbortedError) copy aborted (Windows only)
  
 ==== move ==== ==== move ====
Line 224: Line 246:
 </code> </code>
 <code javascript> <code javascript>
-myObject.move(destination, createDestinationDirectory);+myObject.move(destination, options);
 </code> </code>
  
 === Arguments === === Arguments ===
   - destination - (string) the location where to move the file   - destination - (string) the location where to move the file
-  - createDestinationDirectory - (booleancreate the destination directory (default: true)+  - options - (object) [//Added in Actionaz 3.0.1.//] 
 +    * noErrorDialog - (bool) should an error dialog be shown if an error occurs (Windows only, default: true) 
 +    * noConfirmDialog - (bool) should a confirmation dialog be shown if needed (Windows only, default: true) 
 +    * noProgressDialog - (bool) should a progress dialog be shown (Windows only, default: true) 
 +    * createDestinationDirectory - (boolshould the destination directory be created if it doesn't exist (Linux only, default: true)
  
 === Returns === === Returns ===
Line 235: Line 261:
  
 === Exceptions === === Exceptions ===
-  * (DirectoryCreationError) unable to create the destination directory +  * (ParameterCountError) incorrect parameter count 
-  * (DirectoryDoesntExistError) the destination directory doesn't exist +  * (DirectoryCreationError) unable to create the destination directory (Linux only) 
-  * (MoveRenameError) move failed+  * (DirectoryDoesntExistError) the destination directory doesn't exist (Linux only) 
 +  * (MoveError) move failed 
 +  * (MoveAbortedError) move aborted (Windows only)
  
 ==== rename ==== ==== rename ====
-This method is an alias of the [[#move|move]] method.+This method is an alias of the [[#move1|move]] method.
  
 ==== remove ==== ==== remove ====
Line 249: Line 277:
 myObject.remove(); myObject.remove();
 </code> </code>
 +<code javascript>
 +myObject.remove(options);
 +</code>
 +
 +=== Arguments ===
 +  - options - (object) [//Added in Actionaz 3.0.1.//]
 +    * noErrorDialog - (bool) should an error dialog be shown if an error occurs (Windows only, default: true)
 +    * noConfirmDialog - (bool) should a confirmation dialog be shown if needed (Windows only, default: true)
 +    * noProgressDialog - (bool) should a progress dialog be shown (Windows only, default: true)
 +    * allowUndo - (bool) should the file/directory be moved to the trash bin (Windows only, default: false)
  
 === Returns === === Returns ===
Line 254: Line 292:
  
 === Exceptions === === Exceptions ===
 +  * (ParameterCountError) incorrect parameter count
   * (RemoveError) remove failed   * (RemoveError) remove failed
 +  * (RemoveAbortedError) remove aborted (Windows only)
  
 ===== Enumerations ===== ===== Enumerations =====
en/code/data/file.1323613064.txt.gz · Last modified: 2021/02/13 11:23 (external edit)