addFileWrapper
TypeScriptaddFileWrapper(child: FileWrapper): stringSwift declarationfunc addFileWrapper(_ child: FileWrapper) -> Stringclass · iOS 4.0+ · SDK 27.1
class FileWrapperaddFileWrapper(child: FileWrapper): stringSwift declarationfunc addFileWrapper(_ child: FileWrapper) -> StringaddRegularFile(data: ArrayBuffer, fileName: string): stringSwift declarationfunc addRegularFile(withContents data: Data, preferredFilename fileName: String) -> Stringstatic initDirectoryWithFileWrappers(childrenByPreferredName: Record<string, FileWrapper>): FileWrapperSwift declarationinit(directoryWithFileWrappers childrenByPreferredName: [String : FileWrapper])static initRegularFileWithContents(contents: ArrayBuffer): FileWrapperSwift declarationinit(regularFileWithContents contents: Data)static initSymbolicLinkWithDestinationURL(url: string): FileWrapperSwift declarationinit(symbolicLinkWithDestinationURL url: URL)static initCoder(inCoder: NSCoder): (FileWrapper) | nullSwift declarationinit?(coder inCoder: NSCoder)static initSerializedRepresentation(serializeRepresentation: ArrayBuffer): (FileWrapper) | nullSwift declarationinit?(serializedRepresentation serializeRepresentation: Data)static initUrlOptions(url: string, options?: FileWrapper_ReadingOptions): FileWrapperSwift declarationinit(url: URL, options: FileWrapper.ReadingOptions = []) throwskeyForChildFileWrapper(child: FileWrapper): (string) | nullSwift declarationfunc keyForChildFileWrapper(_ child: FileWrapper) -> String?matchesContents(url: string): booleanSwift declarationfunc matchesContents(of url: URL) -> Boolread(url: string, options?: FileWrapper_ReadingOptions): voidSwift declarationfunc read(from url: URL, options: FileWrapper.ReadingOptions = []) throwsremoveFileWrapper(child: FileWrapper): voidSwift declarationfunc removeFileWrapper(_ child: FileWrapper)write(url: string, options?: FileWrapper_WritingOptions, originalContentsURL?: (string) | null): voidSwift declarationfunc write(to url: URL, options: FileWrapper.WritingOptions = [], originalContentsURL: URL?) throwsget isDirectory(): booleanSwift declarationvar isDirectory: Bool { get }get fileAttributes(): Record<string, unknown>Swift declarationvar fileAttributes: [String : Any] { get set }set fileAttributes(value: Record<string, unknown>)Swift declarationvar fileAttributes: [String : Any] { get set }get fileWrappers(): (Record<string, FileWrapper>) | nullSwift declarationvar fileWrappers: [String : FileWrapper]? { get }get filename(): (string) | nullSwift declarationvar filename: String? { get set }set filename(value: (string) | null)Swift declarationvar filename: String? { get set }get preferredFilename(): (string) | nullSwift declarationvar preferredFilename: String? { get set }set preferredFilename(value: (string) | null)Swift declarationvar preferredFilename: String? { get set }get isRegularFile(): booleanSwift declarationvar isRegularFile: Bool { get }get regularFileContents(): (ArrayBuffer) | nullSwift declarationvar regularFileContents: Data? { get }get serializedRepresentation(): (ArrayBuffer) | nullSwift declarationvar serializedRepresentation: Data? { get }get isSymbolicLink(): booleanSwift declarationvar isSymbolicLink: Bool { get }get symbolicLinkDestinationURL(): (string) | nullSwift declarationvar symbolicLinkDestinationURL: URL? { get }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)