WeakTargetFile

public protocol WeakTargetFile

The target file pointer that does not hold a strong reference to the file system.

  • The file system that contains this file.

    Declaration

    Swift

    var fileSystem: VirtualFileSystem?
  • The absolute path of this file (local for it’s file system).

    Declaration

    Swift

    var absolutePath: String
  • The simple name of this file with an extension.

    Declaration

    Swift

    var simpleName: String
  • openOutputStream(overwrite:) Extension method

    Opens the FileOutputStream for this file.

    Declaration

    Swift

    public func openOutputStream(overwrite: Bool) throws -> FileOutputStream
  • exists() Extension method

    True if the file exists.

    Declaration

    Swift

    public func exists() -> Bool
  • getFile() Extension method

    Get the VirtualFile for this file, or nil if the file is not found.

    Declaration

    Swift

    public func getFile() -> VirtualFile?