io/native/FileUnix
-
realpath(path, resolved: String) → String
-
_getcwd(buf: String, size: SizeT) → String
-
S_ISDIR(...) → Bool
-
S_ISREG(...) → Bool
-
S_ISLNK(...) → Bool
-
S_IRWXU(...)
-
S_IRWXG(...)
-
S_IRWXO(...)
-
lstat(String, FileStat *) → Int
-
_mkdir(String, ModeT) → Int
-
remove(path: String) → Int
-
_remove(path: String) → Int
-
cover ModeT
-
-
cover FileStat
-
-
class FileUnix
-
-
static method new~unix(path: String) → FileUnix
-
method init~unix(path: String)
-
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 lastAccessed → Long
- @return the time of last access, or -1 if it doesn’t exist
-
method lastModified → Long
- @return the time of last modification, or -1 if it doesn’t exist
-
method created → Long
- @return the time of creation, or -1 if it doesn’t exist
-
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 getAbsoluteFile → File
- A file corresponding to the absolute path
@see getAbsolutePath
-
method getChildrenNames → ArrayList<T>
-
method getChildren → ArrayList<T>
-
method mkdir~withMode(mode: Int32) → Int