Skip to content

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.Dirs
  • Dir.Files
  • Dir.Drives
  • Dir.NoSymLinks
  • Dir.AllEntries
  • Dir.TypeMask
  • Dir.Readable
  • Dir.Writable
  • Dir.Executable
  • Dir.PermissionMask
  • Dir.Modified
  • Dir.Hidden
  • Dir.System
  • Dir.AccessMask
  • Dir.AllDirs
  • Dir.CaseSensitive
  • Dir.NoDot
  • Dir.NoDotDot
  • Dir.NoDotAndDotDot
  • Dir.NoFilter

sort is a combination of (default is Dir.NoSort):

  • Dir.Name
  • Dir.Time
  • Dir.Size
  • Dir.Unsorted
  • Dir.SortByMask
  • Dir.DirsFirst
  • Dir.Reversed
  • Dir.IgnoreCase
  • Dir.DirsLast
  • Dir.LocaleAware
  • Dir.Type
  • Dir.NoSory

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)#