One Logo Pool Ball
Foundation · IOS API REFERENCE

FileWrapper

class · iOS 4.0+ · SDK 27.1

class FileWrapper

Members (26)

method · iOS 4.0+

addFileWrapper

TypeScript
addFileWrapper(child: FileWrapper): string
Swift declaration
func addFileWrapper(_ child: FileWrapper) -> String
method · iOS 4.0+

addRegularFile

TypeScript
addRegularFile(data: ArrayBuffer, fileName: string): string
Swift declaration
func addRegularFile(withContents data: Data, preferredFilename fileName: String) -> String
init · iOS 4.0+

init

TypeScript
static initDirectoryWithFileWrappers(childrenByPreferredName: Record<string, FileWrapper>): FileWrapper
Swift declaration
init(directoryWithFileWrappers childrenByPreferredName: [String : FileWrapper])
init · iOS 4.0+

init

TypeScript
static initRegularFileWithContents(contents: ArrayBuffer): FileWrapper
Swift declaration
init(regularFileWithContents contents: Data)
init · iOS 4.0+

init

TypeScript
static initSymbolicLinkWithDestinationURL(url: string): FileWrapper
Swift declaration
init(symbolicLinkWithDestinationURL url: URL)
init · iOS 4.0+

init

TypeScript
static initCoder(inCoder: NSCoder): (FileWrapper) | null
Swift declaration
init?(coder inCoder: NSCoder)
init · iOS 4.0+

init

TypeScript
static initSerializedRepresentation(serializeRepresentation: ArrayBuffer): (FileWrapper) | null
Swift declaration
init?(serializedRepresentation serializeRepresentation: Data)
init · iOS 4.0+

init

TypeScript
static initUrlOptions(url: string, options?: FileWrapper_ReadingOptions): FileWrapper
Swift declaration
init(url: URL, options: FileWrapper.ReadingOptions = []) throws
method · iOS 4.0+

keyForChildFileWrapper

TypeScript
keyForChildFileWrapper(child: FileWrapper): (string) | null
Swift declaration
func keyForChildFileWrapper(_ child: FileWrapper) -> String?
method · iOS 4.0+

matchesContents

TypeScript
matchesContents(url: string): boolean
Swift declaration
func matchesContents(of url: URL) -> Bool
method · iOS 4.0+

read

TypeScript
read(url: string, options?: FileWrapper_ReadingOptions): void
Swift declaration
func read(from url: URL, options: FileWrapper.ReadingOptions = []) throws
method · iOS 4.0+

removeFileWrapper

TypeScript
removeFileWrapper(child: FileWrapper): void
Swift declaration
func removeFileWrapper(_ child: FileWrapper)
method · iOS 4.0+

write

TypeScript
write(url: string, options?: FileWrapper_WritingOptions, originalContentsURL?: (string) | null): void
Swift declaration
func write(to url: URL, options: FileWrapper.WritingOptions = [], originalContentsURL: URL?) throws
get · iOS 4.0+

isDirectory

TypeScript
get isDirectory(): boolean
Swift declaration
var isDirectory: Bool { get }
get · iOS 4.0+

fileAttributes

TypeScript
get fileAttributes(): Record<string, unknown>
Swift declaration
var fileAttributes: [String : Any] { get set }
set · iOS 4.0+

fileAttributes

TypeScript
set fileAttributes(value: Record<string, unknown>)
Swift declaration
var fileAttributes: [String : Any] { get set }
get · iOS 4.0+

fileWrappers

TypeScript
get fileWrappers(): (Record<string, FileWrapper>) | null
Swift declaration
var fileWrappers: [String : FileWrapper]? { get }
get · iOS 4.0+

filename

TypeScript
get filename(): (string) | null
Swift declaration
var filename: String? { get set }
set · iOS 4.0+

filename

TypeScript
set filename(value: (string) | null)
Swift declaration
var filename: String? { get set }
get · iOS 4.0+

preferredFilename

TypeScript
get preferredFilename(): (string) | null
Swift declaration
var preferredFilename: String? { get set }
set · iOS 4.0+

preferredFilename

TypeScript
set preferredFilename(value: (string) | null)
Swift declaration
var preferredFilename: String? { get set }
get · iOS 4.0+

isRegularFile

TypeScript
get isRegularFile(): boolean
Swift declaration
var isRegularFile: Bool { get }
get · iOS 4.0+

regularFileContents

TypeScript
get regularFileContents(): (ArrayBuffer) | null
Swift declaration
var regularFileContents: Data? { get }
get · iOS 4.0+

serializedRepresentation

TypeScript
get serializedRepresentation(): (ArrayBuffer) | null
Swift declaration
var serializedRepresentation: Data? { get }
get · iOS 4.0+

isSymbolicLink

TypeScript
get isSymbolicLink(): boolean
Swift declaration
var isSymbolicLink: Bool { get }
get · iOS 4.0+

symbolicLinkDestinationURL

TypeScript
get symbolicLinkDestinationURL(): (string) | null
Swift declaration
var symbolicLinkDestinationURL: URL? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

FileWrapper.init()

inherited init: cannot prove legal (class declares 6 custom initializers)

All Foundation types →