Static Methodswift-cloud 0.31.0CloudCore
createFile(atPath:contents:withIntermediateDirectories:)
FileUtils.swift:21static func createFile(atPath path: String, contents: Data?, withIntermediateDirectories: Bool = true) throws
static func createFile(atPath path: String, contents: Data?, withIntermediateDirectories: Bool = true) throws
s9CloudCore5FilesO10createFile6atPath8contents27withIntermediateDirectoriesySS_20FoundationEssentials4DataVSgSbtKFZ
What are these?5DCVC
import CloudCore
enum Files
@frozen struct String
A Unicode string value that is a collection of characters.
@frozen struct Data
@frozen struct Bool
A value type whose instances are either true
or false
.
static func copyFile(fromPath: String, toPath: String) throws
static func createDirectory(atPath path: String, withIntermediateDirectories: Bool = true) throws
static func createFile(atPath path: String, contents: String, withIntermediateDirectories: Bool = true) throws
static func currentDirectoryPath() -> String
static func currentEnvironment() -> [String : String]
static func fileExists(atPath path: String) -> Bool
static func parseEnvironmentFile(_ envFileContent: String) -> [String : String]
static func readEnvironmentFile() -> [String : String]
static func readFile(atPath path: String) throws -> Data
static func removeDirectory(atPath path: String) throws
static func removeFile(atPath path: String) throws
static func scanDirectory(atPath path: String) throws -> [(name: String, path: String)]
static func userHomeDirectoryPath() -> String