io/native/FileWin32
-
FindFirstFile(String, FindData *) → Handle
-
FindNextFile(Handle, FindData *) → Bool
-
FindClose(Handle)
-
GetFileAttributes(String) → Long
-
CreateDirectory(String, Pointer) → Bool
-
_remove(path: String) → Int
-
cover FindData
-
-
class FileWin32
-
-
static method new~win32(path: String) → FileWin32
-
method init~win32(path: String)
-
method exists → Bool
- @return true if the file exists and can be
opened for reading
-
method findSingle(ffdPtr: FindData *)
-
method findFirst(ffdPtr: FindData *) → Handle
-
method isDir → Bool
- @return true if it’s a directory
-
method isFile → Bool
- @return true if it’s a file (ie. not a directory nor a symbolic link)
-
method isLink → Bool
- @return true if the file is a symbolic link
-
method size → LLong
- @return the size of the file, in bytes
-
method ownerPerm → Int
- @return the permissions for the owner of this file
-
method groupPerm → Int
- @return the permissions for the group of this file
-
method otherPerm → Int
- @return the permissions for the others (not owner, not group)
-
method mkdir~withMode(mode: Int32) → Int
-
method lastAccessed → Long
- @return the time of last access
-
method lastModified → Long
- @return the time of last modification
-
method created → Long
- @return the time of creation
-
method isRelative → Bool
- @return true if the function is relative to the current directory
-
method getAbsolutePath → String
- The absolute path, e.g. “my/dir” => “/current/directory/my/dir”
-
method getChildrenNames → ArrayList<T>
- List the name of the children of this path
Works only on directories, obviously
-
method getChildren → ArrayList<T>
- List the children of this path
Works only on directories, obviously
-
FILE_ATTRIBUTE_DIRECTORY → Long
-
FILE_ATTRIBUTE_NORMAL → Long
-
FILE_ATTRIBUTE_REPARSE_POINT → Long