FileType
public enum FileType: Equatable, Hashable
The file type of an item in the local file system.
-
Undocumented
Declaration
Swift
public enum FileType: Equatable, Hashable
-
Undocumented
Declaration
Swift
public enum FileType: Equatable, Hashable
-
Undocumented
Declaration
Swift
public enum FileType: Equatable, Hashable
-
Undocumented
Declaration
Swift
public enum FileType: Equatable, Hashable
-
Undocumented
Declaration
Swift
public enum FileType: Equatable, Hashable
-
Undocumented
Declaration
Swift
public enum FileType: Equatable, Hashable
-
Undocumented
Declaration
Swift
public enum FileType: Equatable, Hashable
-
Undocumented
Declaration
Swift
public enum FileType: Equatable, Hashable
-
Returns the file type of the item at the path. Follows symbolic links, so the type is never ‘symbolicLink’. - returns: The file type, or nil if the item does not exist.
Declaration
Swift
public init?(_ path: String)
Return Value
The file type, or nil if the item does not exist.
-
Returns the file type of the item at the path. Follows symbolic links, so the type is never ‘symbolicLink’. - returns: The file type, or nil if the item does not exist.
Declaration
Swift
public init?(_ path: Path)
Return Value
The file type, or nil if the item does not exist.
-
Returns the file type of the item referenced by the provided file descriptor. Crashes if the file descriptor is invalid.
Declaration
Swift
public init(fileDescriptor: Int32)
-
Checks if the file item referenced by
path
is a symbolic link. Returns nil ifpath
could not be accessed.Declaration
Swift
public static func isSymbolicLink(_ path: String) -> Bool?