QDirValueType#
Wrapper around the QDir class. More...
import Script
Properties#
| Name | |
|---|---|
| string | absolutePath |
| string | canonicalPath |
| int | count |
| string | dirName |
| bool | exists |
| bool | isAbsolute |
| bool | isReadable |
| bool | isRelative |
| bool | isRoot |
| string | path |
Methods#
| Name | |
|---|---|
| string | at(int pos) |
| bool | cd(string dirName) |
| bool | cdUp() |
| array<string> | entryList(int filters, int sort) |
| array<string> | entryList(string nameFilter, int filters, int sort) |
| array<string> | entryList(array<string> nameFilters, int filters, int sort) |
| bool | fileExists(string name) |
| bool | makeAbsolute() |
| bool | mkdir(string dirName) |
| bool | mkpath(string dirPath) |
| bool | remove(string fileName) |
| bool | removeRecursively() |
| bool | rename(string oldName, string newName) |
| bool | rmdir(string dirName) |
| bool | rmpath(string dirPath) |
Detailed Description#
The QDirValueType is a wrapper around the QDir C++ class, check QDir
documentation. It can only be created using Dir singleton.
Property Documentation#
string absolutePath#
string canonicalPath#
int count#
string dirName#
bool exists#
bool isAbsolute#
bool isReadable#
bool isRelative#
bool isRoot#
string path#
Method Documentation#
string at(int pos)#
bool cd(string dirName)#
bool cdUp()#
array<string> entryList(int filters, int sort)
array<string> entryList(string nameFilter, int filters, int sort)
array<string> entryList(array<string> nameFilters, int filters, int sort)#
filters is a combination of (default is Dir.NoFilter):
Dir.DirsDir.FilesDir.DrivesDir.NoSymLinksDir.AllEntriesDir.TypeMaskDir.ReadableDir.WritableDir.ExecutableDir.PermissionMaskDir.ModifiedDir.HiddenDir.SystemDir.AccessMaskDir.AllDirsDir.CaseSensitiveDir.NoDotDir.NoDotDotDir.NoDotAndDotDotDir.NoFilter
sort is a combination of (default is Dir.NoSort):
Dir.NameDir.TimeDir.SizeDir.UnsortedDir.SortByMaskDir.DirsFirstDir.ReversedDir.IgnoreCaseDir.DirsLastDir.LocaleAwareDir.TypeDir.NoSory