FileInfo provides commonly used file system operations. More...
Import Statement: | import Esri.ArcGISExtras 1.1 |
Since: | Esri.ArcGISExtras 1.0 |
Inherited By: |
Properties
- baseName : string
- created : date
- exists : bool
- fileName : string
- filePath : string
- folder : FileFolder
- isFile : bool
- isFolder : bool
- isNativePath : bool
- isReadable : bool
- isSymLink : bool
- isWritable : bool
- lastModified : date
- path : string
- permissions : Permissions
- size : string
- suffix : string
- symLinkTarget : string
- url : url
Signals
Detailed Description
FileInfo incorporates a QFileInfo and exposes its most useful properties.
Property Documentation
Returns the name of the file without the path, up to but not including the first dot (read-only).
The file name, including the complete path, currently represented by this FileInfo.
folder : FileFolder |
Returns the folder currently represented by this FileInfo (read-only).
Returns true
if the file system object pointed to by this FileInfo is a regular file or a symbolic link to a regular file (read-only).
Returns false
if the file system object pointed to is something other than a file, such as a folder.
Returns true
if the file pointed to by this FileInfo is a folder or a symbolic link to a folder (read-only).
Returns false
if the file system object pointed to is something other than a folder, such as a file.
Returns true
if the path can be used directly with native APIs (read-only).
Returns false
if the file is otherwise supported by a virtual file system inside Qt such as the Qt Resource System (read-only).
Returns true
if this object points to a symbolic link or to a Windows shortcut (read-only).
Returns the file path without the file name (read-only).
If this FileInfo object has a path ending in a slash, the name of the file is considered empty and this function will return the entire path.
Returns the file size in bytes as a numeric string (read-only).
If the file does not exist or is not accessible, the value of this property is "0".
Returns the substring of the file name after and not including the last dot (read-only).
Returns the absolute path to the file or folder that a symlink (or Windows shortcut) points to, or an empty string if the object is not a symbolic link. (Read-only)
Signal Documentation
Emitted when properties of this object changes.
Emitted when any of these properties change:
- exists
- size
- path
- fileName
- suffix
- created
- lastModified
- isFile
- isFolder
- isReadable
- isWritable
- isNativePath
- isSymLink
- symLinkTarget
Note: The corresponding handler is onFilePathChanged
.
Emitted when the permissions property changes.
Note: The corresponding handler is onPermissionsChanged
.