Folder

public class Folder : FSItem
extension Folder: Hashable

Undocumented

  • Undocumented

    Declaration

    Swift

    public convenience init(name: String, in folder: Folder)
  • Undocumented

    Declaration

    Swift

    public override init(url: URL)
  • Undocumented

    Declaration

    Swift

    public var exists: Bool { get }
  • List of files located inside this folder

    Declaration

    Swift

    public var files: [File] { get }
  • List of folders located inside this folder

    Declaration

    Swift

    public var subfolders: [Folder] { get }
  • Array of all files and folders located inside this folder

    Declaration

    Swift

    public var content: [FSItem] { get }
  • Undocumented

    Declaration

    Swift

    public var size: FileSize { get }
  • Undocumented

    Declaration

    Swift

    public func create() throws
  • Undocumented

    Declaration

    Swift

    public func remove() throws
  • Undocumented

    Declaration

    Swift

    public func clear() throws
  • Undocumented

    Declaration

    Swift

    public subscript(subfolder path: String) -> Folder { get }
  • Undocumented

    Declaration

    Swift

    public subscript(file path: String) -> File { get }
  • Undocumented

    Declaration

    Swift

    public var parent: Folder { get }
  • Returns true if no folders and no files are located inside this folder

    Declaration

    Swift

    public var isEmpty: Bool { get }
  • Undocumented

    Declaration

    Swift

    public func recursiveCopy(to target: Folder) throws
  • Undocumented

    Declaration

    Swift

    public func move(to destination: Folder, overwrite: Bool = false) throws
  • Declaration

    Swift

    public static func == (lhs: Folder, rhs: Folder) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)