Scripting Interface |
Interface to operating system Dir operations, ie, mkdir, rmdir, rename, etc. More...
Public Slots | |
String | filePath (String &file=String::null) |
Get file path form current directory from filename give in parameter. More... | |
String | absFilePath (String &file=String::null) |
Get absolute file path form filename give in parameter. More... | |
void | cd (String &dirName) |
change directory to the given direcotry name More... | |
void | cdUp () |
Go up in directory hierarchy. More... | |
StringList | entryList (String &filter, int filterSpec=-1, int sortSpec=-1) |
Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters. More... | |
void | mkdir (String &dirName=String::null) |
Create a directory with given name. More... | |
void | rmdir (String &dirName=String::null) |
Remove a directory with given name. More... | |
void | mkdirs (String &dirName=String::null) |
Create directory recursively if a path of directory not created is given. More... | |
void | rmdirs (String &dirName=String::null) |
Remove directory recursively if a path of directory is given. More... | |
void | remove (String &fileName) |
Remove a file with the given name. More... | |
void | rename (String &oldName, String &newName) |
Rename a file/folder with the name given to the new name. More... | |
bool | fileExists (String &fileName) |
Check if the file/folder exist. More... | |
void | setCurrent () |
Sets the application's current working directory to path. More... | |
Public Member Functions | |
Dir (String &path) | |
String | name () |
String | path () |
void | setPath (String &newPath) |
String | absPath () |
String | canonicalPath () |
bool | isReadable () |
bool | exists () |
Properties | |
String | name |
Name of the directory. More... | |
String | path |
Path of the directory. More... | |
String | absPath |
Absolute path of the directory. More... | |
String | canonicalPath |
Canonical path of the directory. More... | |
bool | readable |
Say if the directory is readable. More... | |
bool | exists |
Say if the directory exist. More... | |
Interface to operating system Dir operations, ie, mkdir, rmdir, rename, etc.
You can use it in Script Editor only.
|
inline |
|
slot |
Get absolute file path form filename give in parameter.
|
inline |
|
inline |
|
slot |
change directory to the given direcotry name
|
slot |
Go up in directory hierarchy.
|
slot |
Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters.
|
inline |
|
inlineslot |
Check if the file/folder exist.
|
slot |
Get file path form current directory from filename give in parameter.
|
inline |
|
slot |
Create a directory with given name.
|
slot |
Create directory recursively if a path of directory not created is given.
|
inline |
|
inline |
|
slot |
Remove a file with the given name.
|
slot |
Rename a file/folder with the name given to the new name.
|
slot |
Remove a directory with given name.
|
slot |
Remove directory recursively if a path of directory is given.
|
slot |
Sets the application's current working directory to path.
|
inline |
|
read |
Absolute path of the directory.
|
read |
Canonical path of the directory.
|
read |
Say if the directory exist.
|
read |
Name of the directory.
|
readwrite |
Path of the directory.
|
read |
Say if the directory is readable.