en:code:data:file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
en:code:data:file [2011/12/11 14:21] – [rename] jmgr | en:code:data:file [2012/03/22 12:09] – wismerheal | ||
---|---|---|---|
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/ | ||
* createDestinationDirectory - (bool) should the destination directory be created if it doesn' | * createDestinationDirectory - (bool) should the destination directory be created if it doesn' | ||
Line 57: | Line 56: | ||
</ | </ | ||
<code javascript> | <code javascript> | ||
- | File.move(source, | + | File.move(source, |
</ | </ | ||
Line 63: | Line 62: | ||
- source - (string) the source file to move | - source - (string) the source file to move | ||
- destination - (string) the destination file/ | - destination - (string) the destination file/ | ||
- | - createDestinationDirectory - (boolean) should the destination directory be created if it doesn' | + | - 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' | ||
=== Returns === | === Returns === | ||
Line 69: | Line 72: | ||
=== Exceptions === | === Exceptions === | ||
- | * (DirectoryCreationError) unable to create the destination directory | + | |
- | * (DirectoryDoesntExistError) the destination directory doesn' | + | |
- | * (MoveRenameError) move failed | + | * (DirectoryDoesntExistError) the destination directory doesn' |
+ | * (MoveError) move failed | ||
+ | * (MoveAbortedError) move aborted (Windows only) | ||
==== rename ==== | ==== rename ==== | ||
Line 82: | Line 87: | ||
<code javascript> | <code javascript> | ||
File.remove(filename); | File.remove(filename); | ||
+ | </ | ||
+ | <code javascript> | ||
+ | File.remove(filename, | ||
</ | </ | ||
=== 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/ | ||
=== Returns === | === Returns === | ||
Line 91: | Line 104: | ||
=== Exceptions === | === Exceptions === | ||
+ | * (ParameterCountError) incorrect parameter count | ||
* (RemoveError) remove failed | * (RemoveError) remove failed | ||
+ | * (RemoveAbortedError) remove aborted (Windows only) | ||
===== Methods ===== | ===== Methods ===== | ||
Line 202: | Line 217: | ||
</ | </ | ||
<code javascript> | <code javascript> | ||
- | myObject.copy(destination, | + | myObject.copy(destination, |
</ | </ | ||
=== 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' | + | - 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' | ||
=== Returns === | === Returns === | ||
Line 213: | Line 232: | ||
=== Exceptions === | === Exceptions === | ||
- | * (DirectoryCreationError) unable to create the destination directory | + | |
- | * (DirectoryDoesntExistError) the destination directory doesn' | + | |
+ | * (DirectoryDoesntExistError) the destination directory doesn' | ||
* (CopyError) copy failed | * (CopyError) copy failed | ||
+ | * (CopyAbortedError) copy aborted (Windows only) | ||
==== move ==== | ==== move ==== | ||
Line 225: | Line 246: | ||
</ | </ | ||
<code javascript> | <code javascript> | ||
- | myObject.move(destination, | + | myObject.move(destination, |
</ | </ | ||
=== Arguments === | === Arguments === | ||
- destination - (string) the location where to move the file | - destination - (string) the location where to move the file | ||
- | - createDestinationDirectory - (boolean) create | + | - 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 | ||
=== Returns === | === Returns === | ||
Line 236: | Line 261: | ||
=== Exceptions === | === Exceptions === | ||
- | * (DirectoryCreationError) unable to create the destination directory | + | |
- | * (DirectoryDoesntExistError) the destination directory doesn' | + | |
- | * (MoveRenameError) move failed | + | * (DirectoryDoesntExistError) the destination directory doesn' |
+ | * (MoveError) move failed | ||
+ | * (MoveAbortedError) move aborted (Windows only) | ||
==== rename ==== | ==== rename ==== | ||
Line 250: | Line 277: | ||
myObject.remove(); | myObject.remove(); | ||
</ | </ | ||
+ | <code javascript> | ||
+ | myObject.remove(options); | ||
+ | </ | ||
+ | |||
+ | === 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/ | ||
=== Returns === | === Returns === | ||
Line 255: | 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.txt · Last modified: 2021/02/13 11:23 by 127.0.0.1