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
from:mode_t
cover FileStat
from:struct stat
class FileUnix
extends:File
static method new~unix(path: String)FileUnix
method init~unix(path: String)
method isDirBool
@return true if it’s a directory
method isFileBool
@return true if it’s a file (ie. not a directory nor a symbolic link)
@return true if the file is a symbolic link
method sizeLLong
@return the size of the file, in bytes
method ownerPermInt
@return the permissions for the owner of this file
method groupPermInt
@return the permissions for the group of this file
method otherPermInt
@return the permissions for the others (not owner, not group)
method lastAccessedLong
@return the time of last access, or -1 if it doesn’t exist
method lastModifiedLong
@return the time of last modification, or -1 if it doesn’t exist
method createdLong
@return the time of creation, or -1 if it doesn’t exist
method isRelativeBool
@return true if the function is relative to the current directory
method getAbsolutePathString
The absolute path, e.g. “my/dir” => “/current/directory/my/dir”
method getAbsoluteFileFile
A file corresponding to the absolute path @see getAbsolutePath
method getChildrenNamesArrayList<T>
method getChildrenArrayList<T>
method mkdir~withMode(mode: Int32)Int

This Page