Instance Methodtuist.filesystem 0.6.6FileSystem
fileSizeInBytes(at:)
FileSystem.swift:535func fileSizeInBytes(at path: AbsolutePath) async throws -> Int64?
Other members in extension
Type members
Instance members
func copy(AbsolutePath, to: AbsolutePath
) async throws func createSymbolicLink(from: AbsolutePath, to: AbsolutePath
) async throws func currentWorkingDirectory(
) async throws -> AbsolutePath func exists(AbsolutePath
) async throws -> Bool func exists(AbsolutePath, isDirectory: Bool
) async throws -> Bool func glob(directory: Path.AbsolutePath, include: [String]
) throws -> AnyThrowingAsyncSequenceable<Path.AbsolutePath> func locateTraversingUp(from: AbsolutePath, relativePath: RelativePath
) async throws -> AbsolutePath? func makeDirectory(at: Path.AbsolutePath
) async throws func makeDirectory(at: Path.AbsolutePath, options: [MakeDirectoryOptions]
) async throws func makeTemporaryDirectory(prefix: String
) async throws -> AbsolutePath func move(from: Path.AbsolutePath, to: Path.AbsolutePath
) async throws func move(from: AbsolutePath, to: AbsolutePath, options: [MoveOptions]
) async throws func readFile(at: Path.AbsolutePath
) async throws -> Data func readJSONFile<T>(at: Path.AbsolutePath
) async throws -> T func readJSONFile<T>(at: Path.AbsolutePath, decoder: JSONDecoder
) async throws -> T func readPlistFile<T>(at: Path.AbsolutePath
) async throws -> T func readPlistFile<T>(at: Path.AbsolutePath, decoder: PropertyListDecoder
) async throws -> T func readTextFile(at: Path.AbsolutePath
) async throws -> String func readTextFile(at: Path.AbsolutePath, encoding: String.Encoding
) async throws -> String func remove(Path.AbsolutePath
) async throws func remove(AbsolutePath, recursively: Bool
) async throws func replace(AbsolutePath, with: AbsolutePath
) async throws func resolveSymbolicLink(AbsolutePath
) async throws -> AbsolutePath func runInTemporaryDirectory<T>(prefix: String, (_ temporaryDirectory: AbsolutePath) async throws -> T
) async throws -> T func touch(Path.AbsolutePath
) async throws func unzip(Path.AbsolutePath, to: Path.AbsolutePath
) async throws func writeAsJSON(some Encodable, at: AbsolutePath
) async throws func writeAsJSON(some Encodable, at: AbsolutePath, encoder: JSONEncoder
) async throws func writeAsPlist(some Encodable, at: AbsolutePath
) async throws func writeAsPlist(some Encodable, at: AbsolutePath, encoder: PropertyListEncoder
) async throws func writeText(String, at: AbsolutePath
) async throws func writeText(String, at: AbsolutePath, encoding: String.Encoding
) async throws func zipFileOrDirectoryContent(at: Path.AbsolutePath, to: Path.AbsolutePath
) async throws