Ponyboy47/Pathman

View on GitHub
Sources/Pathman/File/OpenFile.swift

Summary

Maintainability
A
1 hr
Test Coverage
public typealias FileStream = Open<FilePath>

public extension Open where PathType == FilePath {
    /// Whether or not the path was opened with read permissions
    var mayRead: Bool { return openMode.mayRead }

    /// Whether or not the path was opened with write permissions
    var mayWrite: Bool { return openMode.mayWrite }

    var openMode: OpenFileMode { return openOptions.mode }
}