1| 操作 | 旧版本 | 新版本 | d.ts文件 | 2| ---- | ------ | ------ | -------- | 3|新增|NA|模块名: ohos.file.environment<br>类名: Environment|@ohos.file.environment.d.ts| 4|新增|NA|模块名: ohos.file.environment<br>类名: Environment<br>方法 or 属性: function getStorageDataDir(): Promise<string>;|@ohos.file.environment.d.ts| 5|新增|NA|模块名: ohos.file.environment<br>类名: Environment<br>方法 or 属性: function getStorageDataDir(callback: AsyncCallback<string>): void;|@ohos.file.environment.d.ts| 6|新增|NA|模块名: ohos.file.environment<br>类名: Environment<br>方法 or 属性: function getUserDataDir(): Promise<string>;|@ohos.file.environment.d.ts| 7|新增|NA|模块名: ohos.file.environment<br>类名: Environment<br>方法 or 属性: function getUserDataDir(callback: AsyncCallback<string>): void;|@ohos.file.environment.d.ts| 8|新增|NA|模块名: ohos.file.fileAccess<br>类名: fileAccess|@ohos.file.fileAccess.d.ts| 9|新增|NA|模块名: ohos.file.fileAccess<br>类名: fileAccess<br>方法 or 属性: function getFileAccessAbilityInfo(callback: AsyncCallback<Array<Want>>): void;|@ohos.file.fileAccess.d.ts| 10|新增|NA|模块名: ohos.file.fileAccess<br>类名: fileAccess<br>方法 or 属性: function getFileAccessAbilityInfo(): Promise<Array<Want>>;|@ohos.file.fileAccess.d.ts| 11|新增|NA|模块名: ohos.file.fileAccess<br>类名: fileAccess<br>方法 or 属性: function createFileAccessHelper(context: Context): FileAccessHelper;|@ohos.file.fileAccess.d.ts| 12|新增|NA|模块名: ohos.file.fileAccess<br>类名: fileAccess<br>方法 or 属性: function createFileAccessHelper(context: Context, wants: Array<Want>): FileAccessHelper;|@ohos.file.fileAccess.d.ts| 13|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileInfo|@ohos.file.fileAccess.d.ts| 14|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileInfo<br>方法 or 属性: uri: string;|@ohos.file.fileAccess.d.ts| 15|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileInfo<br>方法 or 属性: fileName: string;|@ohos.file.fileAccess.d.ts| 16|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileInfo<br>方法 or 属性: mode: number;|@ohos.file.fileAccess.d.ts| 17|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileInfo<br>方法 or 属性: size: number;|@ohos.file.fileAccess.d.ts| 18|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileInfo<br>方法 or 属性: mtime: number;|@ohos.file.fileAccess.d.ts| 19|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileInfo<br>方法 or 属性: mimeType: string;|@ohos.file.fileAccess.d.ts| 20|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileInfo<br>方法 or 属性: listFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts| 21|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileInfo<br>方法 or 属性: scanFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts| 22|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileIterator|@ohos.file.fileAccess.d.ts| 23|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileIterator<br>方法 or 属性: next(): {value: FileInfo, done: boolean}|@ohos.file.fileAccess.d.ts| 24|新增|NA|模块名: ohos.file.fileAccess<br>类名: RootInfo|@ohos.file.fileAccess.d.ts| 25|新增|NA|模块名: ohos.file.fileAccess<br>类名: RootInfo<br>方法 or 属性: deviceType: number;|@ohos.file.fileAccess.d.ts| 26|新增|NA|模块名: ohos.file.fileAccess<br>类名: RootInfo<br>方法 or 属性: uri: string;|@ohos.file.fileAccess.d.ts| 27|新增|NA|模块名: ohos.file.fileAccess<br>类名: RootInfo<br>方法 or 属性: displayName: string;|@ohos.file.fileAccess.d.ts| 28|新增|NA|模块名: ohos.file.fileAccess<br>类名: RootInfo<br>方法 or 属性: deviceFlags: number;|@ohos.file.fileAccess.d.ts| 29|新增|NA|模块名: ohos.file.fileAccess<br>类名: RootInfo<br>方法 or 属性: listFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts| 30|新增|NA|模块名: ohos.file.fileAccess<br>类名: RootInfo<br>方法 or 属性: scanFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts| 31|新增|NA|模块名: ohos.file.fileAccess<br>类名: RootIterator|@ohos.file.fileAccess.d.ts| 32|新增|NA|模块名: ohos.file.fileAccess<br>类名: RootIterator<br>方法 or 属性: next(): {value: RootInfo, done: boolean}|@ohos.file.fileAccess.d.ts| 33|新增|NA|模块名: ohos.file.fileAccess<br>类名: OPENFLAGS|@ohos.file.fileAccess.d.ts| 34|新增|NA|模块名: ohos.file.fileAccess<br>类名: OPENFLAGS<br>方法 or 属性: READ = 0o0|@ohos.file.fileAccess.d.ts| 35|新增|NA|模块名: ohos.file.fileAccess<br>类名: OPENFLAGS<br>方法 or 属性: WRITE = 0o1|@ohos.file.fileAccess.d.ts| 36|新增|NA|模块名: ohos.file.fileAccess<br>类名: OPENFLAGS<br>方法 or 属性: WRITE_READ = 0o2|@ohos.file.fileAccess.d.ts| 37|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper|@ohos.file.fileAccess.d.ts| 38|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: openFile(uri: string, flags: OPENFLAGS) : Promise<number>;|@ohos.file.fileAccess.d.ts| 39|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback<number>) : void;|@ohos.file.fileAccess.d.ts| 40|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: createFile(uri: string, displayName: string) : Promise<string>;|@ohos.file.fileAccess.d.ts| 41|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: createFile(uri: string, displayName: string, callback: AsyncCallback<string>) : void;|@ohos.file.fileAccess.d.ts| 42|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: mkDir(parentUri: string, displayName: string) : Promise<string>;|@ohos.file.fileAccess.d.ts| 43|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: mkDir(parentUri: string, displayName: string, callback: AsyncCallback<string>) : void;|@ohos.file.fileAccess.d.ts| 44|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: delete(uri: string) : Promise<number>;|@ohos.file.fileAccess.d.ts| 45|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: delete(uri: string, callback: AsyncCallback<number>) : void;|@ohos.file.fileAccess.d.ts| 46|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: move(sourceFile: string, destFile: string) : Promise<string>;|@ohos.file.fileAccess.d.ts| 47|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: move(sourceFile: string, destFile: string, callback: AsyncCallback<string>) : void;|@ohos.file.fileAccess.d.ts| 48|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: rename(uri: string, displayName: string) : Promise<string>;|@ohos.file.fileAccess.d.ts| 49|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: rename(uri: string, displayName: string, callback: AsyncCallback<string>) : void;|@ohos.file.fileAccess.d.ts| 50|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: access(sourceFileUri: string) : Promise<boolean>;|@ohos.file.fileAccess.d.ts| 51|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: access(sourceFileUri: string, callback: AsyncCallback<boolean>) : void;|@ohos.file.fileAccess.d.ts| 52|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: getRoots(): Promise<RootIterator>;|@ohos.file.fileAccess.d.ts| 53|新增|NA|模块名: ohos.file.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性: getRoots(callback:AsyncCallback<RootIterator>) : void;|@ohos.file.fileAccess.d.ts| 54|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: fileExtensionInfo|@ohos.file.fileExtensionInfo.d.ts| 55|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DeviceType|@ohos.file.fileExtensionInfo.d.ts| 56|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性: DEVICE_LOCAL_DISK = 1|@ohos.file.fileExtensionInfo.d.ts| 57|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性: DEVICE_SHARED_DISK|@ohos.file.fileExtensionInfo.d.ts| 58|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性: DEVICE_SHARED_TERMINAL|@ohos.file.fileExtensionInfo.d.ts| 59|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性: DEVICE_NETWORK_NEIGHBORHOODS|@ohos.file.fileExtensionInfo.d.ts| 60|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性: DEVICE_EXTERNAL_MTP|@ohos.file.fileExtensionInfo.d.ts| 61|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性: DEVICE_EXTERNAL_USB|@ohos.file.fileExtensionInfo.d.ts| 62|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性: DEVICE_EXTERNAL_CLOUD|@ohos.file.fileExtensionInfo.d.ts| 63|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DeviceFlag|@ohos.file.fileExtensionInfo.d.ts| 64|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DeviceFlag<br>方法 or 属性: const SUPPORTS_READ = 0b1;|@ohos.file.fileExtensionInfo.d.ts| 65|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DeviceFlag<br>方法 or 属性: const SUPPORTS_WRITE = 0b10;|@ohos.file.fileExtensionInfo.d.ts| 66|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DocumentFlag|@ohos.file.fileExtensionInfo.d.ts| 67|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DocumentFlag<br>方法 or 属性: const REPRESENTS_FILE = 0b1;|@ohos.file.fileExtensionInfo.d.ts| 68|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DocumentFlag<br>方法 or 属性: const REPRESENTS_DIR = 0b10;|@ohos.file.fileExtensionInfo.d.ts| 69|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DocumentFlag<br>方法 or 属性: const SUPPORTS_READ = 0b100;|@ohos.file.fileExtensionInfo.d.ts| 70|新增|NA|模块名: ohos.file.fileExtensionInfo<br>类名: DocumentFlag<br>方法 or 属性: const SUPPORTS_WRITE = 0b1000;|@ohos.file.fileExtensionInfo.d.ts| 71|新增|NA|模块名: ohos.file.fileuri<br>类名: fileUri|@ohos.file.fileuri.d.ts| 72|新增|NA|模块名: ohos.file.fileuri<br>类名: fileUri<br>方法 or 属性: function getUriFromPath(path: string): string;|@ohos.file.fileuri.d.ts| 73|新增|NA|类名:fileIo<br>方法or属性:function access(path: string): Promise<boolean>;|@ohos.file.fs.d.ts| 74|新增|NA|类名:fileIo<br>方法or属性:function access(path: string, callback: AsyncCallback<boolean>): void;|@ohos.file.fs.d.ts| 75|新增|NA|类名:fileIo<br>方法or属性:function accessSync(path: string): boolean;|@ohos.file.fs.d.ts| 76|新增|NA|类名:fileIo<br>方法or属性:function close(file: number \| File): Promise<void>;|@ohos.file.fs.d.ts| 77|新增|NA|类名:fileIo<br>方法or属性:function close(file: number \| File, callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 78|新增|NA|类名:fileIo<br>方法or属性:function closeSync(fd: number \| File): void;|@ohos.file.fs.d.ts| 79|新增|NA|类名:fileIo<br>方法or属性:function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise<void>;|@ohos.file.fs.d.ts| 80|新增|NA|类名:fileIo<br>方法or属性:function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 81|新增|NA|类名:fileIo<br>方法or属性:function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 82|新增|NA|类名:fileIo<br>方法or属性:function copyFileSync(src: string \| number, dest: string \| number, mode?: number): void;|@ohos.file.fs.d.ts| 83|新增|NA|类名:fileIo<br>方法or属性:function createStream(path: string, mode: string): Promise<Stream>;|@ohos.file.fs.d.ts| 84|新增|NA|类名:fileIo<br>方法or属性:function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;|@ohos.file.fs.d.ts| 85|新增|NA|类名:fileIo<br>方法or属性:function createStreamSync(path: string, mode: string): Stream;|@ohos.file.fs.d.ts| 86|新增|NA|类名:fileIo<br>方法or属性:function fdatasync(fd: number): Promise<void>;|@ohos.file.fs.d.ts| 87|新增|NA|类名:fileIo<br>方法or属性:function fdatasync(fd: number, callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 88|新增|NA|类名:fileIo<br>方法or属性:function fdatasyncSync(fd: number): void;|@ohos.file.fs.d.ts| 89|新增|NA|类名:fileIo<br>方法or属性:function fdopenStream(fd: number, mode: string): Promise<Stream>;|@ohos.file.fs.d.ts| 90|新增|NA|类名:fileIo<br>方法or属性:function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void;|@ohos.file.fs.d.ts| 91|新增|NA|类名:fileIo<br>方法or属性:function fdopenStreamSync(fd: number, mode: string): Stream;|@ohos.file.fs.d.ts| 92|新增|NA|类名:fileIo<br>方法or属性:function fsync(fd: number): Promise<void>;|@ohos.file.fs.d.ts| 93|新增|NA|类名:fileIo<br>方法or属性:function fsync(fd: number, callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 94|新增|NA|类名:fileIo<br>方法or属性:function fsyncSync(fd: number): void;|@ohos.file.fs.d.ts| 95|新增|NA|类名:fileIo<br>方法or属性:function lstat(path: string): Promise<Stat>;|@ohos.file.fs.d.ts| 96|新增|NA|类名:fileIo<br>方法or属性:function lstat(path: string, callback: AsyncCallback<Stat>): void;|@ohos.file.fs.d.ts| 97|新增|NA|类名:fileIo<br>方法or属性:function lstatSync(path: string): Stat;|@ohos.file.fs.d.ts| 98|新增|NA|类名:fileIo<br>方法or属性:function mkdir(path: string): Promise<void>;|@ohos.file.fs.d.ts| 99|新增|NA|类名:fileIo<br>方法or属性:function mkdir(path: string, callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 100|新增|NA|类名:fileIo<br>方法or属性:function mkdirSync(path: string): void;|@ohos.file.fs.d.ts| 101|新增|NA|类名:fileIo<br>方法or属性:function mkdtemp(prefix: string): Promise<string>;|@ohos.file.fs.d.ts| 102|新增|NA|类名:fileIo<br>方法or属性:function mkdtemp(prefix: string, callback: AsyncCallback<string>): void;|@ohos.file.fs.d.ts| 103|新增|NA|类名:fileIo<br>方法or属性:function mkdtempSync(prefix: string): string;|@ohos.file.fs.d.ts| 104|新增|NA|类名:fileIo<br>方法or属性:function readText(filePath: string, options?: {<br> offset?: number;<br> length?: number;<br> encoding?: string;<br>}): Promise<string>;|@ohos.file.fs.d.ts| 105|新增|NA|类名:fileIo<br>方法or属性:function readText(filePath: string, callback: AsyncCallback<string>): void;|@ohos.file.fs.d.ts| 106|新增|NA|类名:fileIo<br>方法or属性:function readText(filePath: string, options: {<br> offset?: number;<br> length?: number;<br> encoding?: string;<br>}, callback: AsyncCallback<string>): void;|@ohos.file.fs.d.ts| 107|新增|NA|类名:fileIo<br>方法or属性:function readTextSync(filePath: string, options?: {<br> offset?: number;<br> length?: number;<br> encoding?: string;<br>}): string;|@ohos.file.fs.d.ts| 108|新增|NA|类名:fileIo<br>方法or属性:function rename(oldPath: string, newPath: string): Promise<void>;|@ohos.file.fs.d.ts| 109|新增|NA|类名:fileIo<br>方法or属性:function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 110|新增|NA|类名:fileIo<br>方法or属性:function renameSync(oldPath: string, newPath: string): void;|@ohos.file.fs.d.ts| 111|新增|NA|类名:fileIo<br>方法or属性:function rmdir(path: string): Promise<void>;|@ohos.file.fs.d.ts| 112|新增|NA|类名:fileIo<br>方法or属性:function rmdir(path: string, callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 113|新增|NA|类名:fileIo<br>方法or属性:function rmdirSync(path: string): void;|@ohos.file.fs.d.ts| 114|新增|NA|类名:fileIo<br>方法or属性:function symlink(target: string, srcPath: string): Promise<void>;|@ohos.file.fs.d.ts| 115|新增|NA|类名:fileIo<br>方法or属性:function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 116|新增|NA|类名:fileIo<br>方法or属性:function symlinkSync(target: string, srcPath: string): void;|@ohos.file.fs.d.ts| 117|新增|NA|类名:fileIo<br>方法or属性:function unlink(path: string): Promise<void>;|@ohos.file.fs.d.ts| 118|新增|NA|类名:fileIo<br>方法or属性:function unlink(path: string, callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 119|新增|NA|类名:fileIo<br>方法or属性:function unlinkSync(path: string): void;|@ohos.file.fs.d.ts| 120|新增|NA|类名:Stat<br>方法or属性:readonly ino: bigint;|@ohos.file.fs.d.ts| 121|新增|NA|模块名: ohos.file.fs<br>类名: Stream|@ohos.file.fs.d.ts| 122|新增|NA|类名:Stream<br>方法or属性:|@ohos.file.fs.d.ts| 123|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:close(): Promise<void>;|@ohos.file.fs.d.ts| 124|新增|NA|类名:Stream<br>方法or属性:close(): Promise<void>;|@ohos.file.fs.d.ts| 125|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:close(callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 126|新增|NA|类名:Stream<br>方法or属性:close(callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 127|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:closeSync(): void;|@ohos.file.fs.d.ts| 128|新增|NA|类名:Stream<br>方法or属性:closeSync(): void;|@ohos.file.fs.d.ts| 129|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:flush(): Promise<void>;|@ohos.file.fs.d.ts| 130|新增|NA|类名:Stream<br>方法or属性:flush(): Promise<void>;|@ohos.file.fs.d.ts| 131|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:flush(callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 132|新增|NA|类名:Stream<br>方法or属性:flush(callback: AsyncCallback<void>): void;|@ohos.file.fs.d.ts| 133|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:flushSync(): void;|@ohos.file.fs.d.ts| 134|新增|NA|类名:Stream<br>方法or属性:flushSync(): void;|@ohos.file.fs.d.ts| 135|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:write(buffer: ArrayBuffer \| string, options?: {<br> offset?: number;<br> length?: number;<br> encoding?: string;<br> }): Promise<number>;|@ohos.file.fs.d.ts| 136|新增|NA|类名:Stream<br>方法or属性:write(buffer: ArrayBuffer \| string, options?: {<br> offset?: number;<br> length?: number;<br> encoding?: string;<br> }): Promise<number>;|@ohos.file.fs.d.ts| 137|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:write(buffer: ArrayBuffer \| string, callback: AsyncCallback<number>): void;|@ohos.file.fs.d.ts| 138|新增|NA|类名:Stream<br>方法or属性:write(buffer: ArrayBuffer \| string, callback: AsyncCallback<number>): void;|@ohos.file.fs.d.ts| 139|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:write(buffer: ArrayBuffer \| string, options: {<br> offset?: number;<br> length?: number;<br> encoding?: string;<br> }, callback: AsyncCallback<number>): void;|@ohos.file.fs.d.ts| 140|新增|NA|类名:Stream<br>方法or属性:write(buffer: ArrayBuffer \| string, options: {<br> offset?: number;<br> length?: number;<br> encoding?: string;<br> }, callback: AsyncCallback<number>): void;|@ohos.file.fs.d.ts| 141|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:writeSync(buffer: ArrayBuffer \| string, options?: {<br> offset?: number;<br> length?: number;<br> encoding?: string;<br> }): number;|@ohos.file.fs.d.ts| 142|新增|NA|类名:Stream<br>方法or属性:writeSync(buffer: ArrayBuffer \| string, options?: {<br> offset?: number;<br> length?: number;<br> encoding?: string;<br> }): number;|@ohos.file.fs.d.ts| 143|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:read(buffer: ArrayBuffer, options?: {<br> offset?: number;<br> length?: number;<br> }): Promise<number>;|@ohos.file.fs.d.ts| 144|新增|NA|类名:Stream<br>方法or属性:read(buffer: ArrayBuffer, options?: {<br> offset?: number;<br> length?: number;<br> }): Promise<number>;|@ohos.file.fs.d.ts| 145|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:read(buffer: ArrayBuffer, callback: AsyncCallback<number>): void;|@ohos.file.fs.d.ts| 146|新增|NA|类名:Stream<br>方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback<number>): void;|@ohos.file.fs.d.ts| 147|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:read(buffer: ArrayBuffer, options: {<br> offset?: number;<br> length?: number;<br> }, callback: AsyncCallback<number>): void;|@ohos.file.fs.d.ts| 148|新增|NA|类名:Stream<br>方法or属性:read(buffer: ArrayBuffer, options: {<br> offset?: number;<br> length?: number;<br> }, callback: AsyncCallback<number>): void;|@ohos.file.fs.d.ts| 149|新增|NA|模块名: ohos.file.fs<br>类名: Stream<br>方法 or 属性:readSync(buffer: ArrayBuffer, options?: {<br> offset?: number;<br> length?: number;<br> }): number;|@ohos.file.fs.d.ts| 150|新增|NA|类名:Stream<br>方法or属性:readSync(buffer: ArrayBuffer, options?: {<br> offset?: number;<br> length?: number;<br> }): number;|@ohos.file.fs.d.ts| 151|新增|NA|模块名: ohos.file.hash<br>类名: Hash|@ohos.file.hash.d.ts| 152|新增|NA|模块名: ohos.file.hash<br>类名: Hash<br>方法 or 属性: function hash(path: string, algorithm: string): Promise<string>;|@ohos.file.hash.d.ts| 153|新增|NA|模块名: ohos.file.hash<br>类名: Hash<br>方法 or 属性: function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void;|@ohos.file.hash.d.ts| 154|新增|NA|模块名: ohos.file.securityLabel<br>类名: securityLabel|@ohos.file.securityLabel.d.ts| 155|新增|NA|模块名: ohos.file.securityLabel<br>类名: dataLevel<br>方法 or 属性: type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| 156|新增|NA|模块名: ohos.file.securityLabel<br>类名: dataLevel<br>方法 or 属性: type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| 157|新增|NA|模块名: ohos.file.securityLabel<br>类名: dataLevel<br>方法 or 属性: type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| 158|新增|NA|模块名: ohos.file.securityLabel<br>类名: dataLevel<br>方法 or 属性: type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| 159|新增|NA|模块名: ohos.file.securityLabel<br>类名: dataLevel<br>方法 or 属性: type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| 160|新增|NA|模块名: ohos.file.securityLabel<br>类名: securityLabel<br>方法 or 属性: function setSecurityLabel(path: string, type: dataLevel): Promise<void>;|@ohos.file.securityLabel.d.ts| 161|新增|NA|模块名: ohos.file.securityLabel<br>类名: securityLabel<br>方法 or 属性: function setSecurityLabel(path: string, type: dataLevel, callback: AsyncCallback<void>): void;|@ohos.file.securityLabel.d.ts| 162|新增|NA|模块名: ohos.file.securityLabel<br>类名: securityLabel<br>方法 or 属性: function setSecurityLabelSync(path: string, type: dataLevel): void;|@ohos.file.securityLabel.d.ts| 163|新增|NA|模块名: ohos.file.securityLabel<br>类名: securityLabel<br>方法 or 属性: function getSecurityLabel(path: string): Promise<string>;|@ohos.file.securityLabel.d.ts| 164|新增|NA|模块名: ohos.file.securityLabel<br>类名: securityLabel<br>方法 or 属性: function getSecurityLabel(path: string, callback: AsyncCallback<string>): void;|@ohos.file.securityLabel.d.ts| 165|新增|NA|模块名: ohos.file.securityLabel<br>类名: securityLabel<br>方法 or 属性: function getSecurityLabelSync(path: string): string;|@ohos.file.securityLabel.d.ts| 166|新增|NA|模块名: ohos.file.statvfs<br>类名: Statfs|@ohos.file.statvfs.d.ts| 167|新增|NA|模块名: ohos.file.statvfs<br>类名: Statfs<br>方法 or 属性: function getFreeSize(path: string): Promise<number>;|@ohos.file.statvfs.d.ts| 168|新增|NA|模块名: ohos.file.statvfs<br>类名: Statfs<br>方法 or 属性: function getFreeSize(path: string, callback: AsyncCallback<number>): void;|@ohos.file.statvfs.d.ts| 169|新增|NA|模块名: ohos.file.statvfs<br>类名: Statfs<br>方法 or 属性: function getTotalSize(path: string): Promise<number>;|@ohos.file.statvfs.d.ts| 170|新增|NA|模块名: ohos.file.statvfs<br>类名: Statfs<br>方法 or 属性: function getTotalSize(path: string, callback: AsyncCallback<number>): void;|@ohos.file.statvfs.d.ts| 171|新增|NA|模块名: ohos.fileshare<br>类名: fileShare|@ohos.fileshare.d.ts| 172|新增|NA|模块名: ohos.fileshare<br>类名: fileShare<br>方法 or 属性: function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags, callback: AsyncCallback<void>): void;|@ohos.fileshare.d.ts| 173|新增|NA|模块名: ohos.fileshare<br>类名: fileShare<br>方法 or 属性: function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags): Promise<void>;|@ohos.fileshare.d.ts| 174|删除|模块名: ohos.data.fileAccess<br>类名: fileAccess|NA|@ohos.data.fileAccess.d.ts| 175|删除|模块名: ohos.data.fileAccess<br>类名: fileAccess<br>方法 or 属性:function getFileAccessAbilityInfo(callback: AsyncCallback<Array<Want>>): void;|NA|@ohos.data.fileAccess.d.ts| 176|删除|模块名: ohos.data.fileAccess<br>类名: fileAccess<br>方法 or 属性:function getFileAccessAbilityInfo(): Promise<Array<Want>>;|NA|@ohos.data.fileAccess.d.ts| 177|删除|模块名: ohos.data.fileAccess<br>类名: fileAccess<br>方法 or 属性:function createFileAccessHelper(context: Context): FileAccessHelper;|NA|@ohos.data.fileAccess.d.ts| 178|删除|模块名: ohos.data.fileAccess<br>类名: fileAccess<br>方法 or 属性:function createFileAccessHelper(context: Context, wants: Array<Want>): FileAccessHelper;|NA|@ohos.data.fileAccess.d.ts| 179|删除|模块名: ohos.data.fileAccess<br>类名: FileInfo|NA|@ohos.data.fileAccess.d.ts| 180|删除|模块名: ohos.data.fileAccess<br>类名: FileInfo<br>方法 or 属性:uri: string;|NA|@ohos.data.fileAccess.d.ts| 181|删除|模块名: ohos.data.fileAccess<br>类名: FileInfo<br>方法 or 属性:fileName: string;|NA|@ohos.data.fileAccess.d.ts| 182|删除|模块名: ohos.data.fileAccess<br>类名: FileInfo<br>方法 or 属性:mode: number;|NA|@ohos.data.fileAccess.d.ts| 183|删除|模块名: ohos.data.fileAccess<br>类名: FileInfo<br>方法 or 属性:size: number;|NA|@ohos.data.fileAccess.d.ts| 184|删除|模块名: ohos.data.fileAccess<br>类名: FileInfo<br>方法 or 属性:mtime: number;|NA|@ohos.data.fileAccess.d.ts| 185|删除|模块名: ohos.data.fileAccess<br>类名: FileInfo<br>方法 or 属性:mimeType: string;|NA|@ohos.data.fileAccess.d.ts| 186|删除|模块名: ohos.data.fileAccess<br>类名: FileInfo<br>方法 or 属性:listFile(filter?: Filter): FileIterator;|NA|@ohos.data.fileAccess.d.ts| 187|删除|模块名: ohos.data.fileAccess<br>类名: FileInfo<br>方法 or 属性:scanFile(filter?: Filter): FileIterator;|NA|@ohos.data.fileAccess.d.ts| 188|删除|模块名: ohos.data.fileAccess<br>类名: FileIterator|NA|@ohos.data.fileAccess.d.ts| 189|删除|模块名: ohos.data.fileAccess<br>类名: FileIterator<br>方法 or 属性:next(): {value: FileInfo, done: boolean}|NA|@ohos.data.fileAccess.d.ts| 190|删除|模块名: ohos.data.fileAccess<br>类名: RootInfo|NA|@ohos.data.fileAccess.d.ts| 191|删除|模块名: ohos.data.fileAccess<br>类名: RootInfo<br>方法 or 属性:deviceType: number;|NA|@ohos.data.fileAccess.d.ts| 192|删除|模块名: ohos.data.fileAccess<br>类名: RootInfo<br>方法 or 属性:uri: string;|NA|@ohos.data.fileAccess.d.ts| 193|删除|模块名: ohos.data.fileAccess<br>类名: RootInfo<br>方法 or 属性:displayName: string;|NA|@ohos.data.fileAccess.d.ts| 194|删除|模块名: ohos.data.fileAccess<br>类名: RootInfo<br>方法 or 属性:deviceFlags: number;|NA|@ohos.data.fileAccess.d.ts| 195|删除|模块名: ohos.data.fileAccess<br>类名: RootInfo<br>方法 or 属性:listFile(filter?: Filter): FileIterator;|NA|@ohos.data.fileAccess.d.ts| 196|删除|模块名: ohos.data.fileAccess<br>类名: RootInfo<br>方法 or 属性:scanFile(filter?: Filter): FileIterator;|NA|@ohos.data.fileAccess.d.ts| 197|删除|模块名: ohos.data.fileAccess<br>类名: RootIterator|NA|@ohos.data.fileAccess.d.ts| 198|删除|模块名: ohos.data.fileAccess<br>类名: RootIterator<br>方法 or 属性:next(): {value: RootInfo, done: boolean}|NA|@ohos.data.fileAccess.d.ts| 199|删除|模块名: ohos.data.fileAccess<br>类名: OPENFLAGS|NA|@ohos.data.fileAccess.d.ts| 200|删除|模块名: ohos.data.fileAccess<br>类名: OPENFLAGS<br>方法 or 属性:READ = 0o0|NA|@ohos.data.fileAccess.d.ts| 201|删除|模块名: ohos.data.fileAccess<br>类名: OPENFLAGS<br>方法 or 属性:WRITE = 0o1|NA|@ohos.data.fileAccess.d.ts| 202|删除|模块名: ohos.data.fileAccess<br>类名: OPENFLAGS<br>方法 or 属性:WRITE_READ = 0o2|NA|@ohos.data.fileAccess.d.ts| 203|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper|NA|@ohos.data.fileAccess.d.ts| 204|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:openFile(uri: string, flags: OPENFLAGS) : Promise<number>;|NA|@ohos.data.fileAccess.d.ts| 205|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback<number>) : void;|NA|@ohos.data.fileAccess.d.ts| 206|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:createFile(uri: string, displayName: string) : Promise<string>;|NA|@ohos.data.fileAccess.d.ts| 207|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:createFile(uri: string, displayName: string, callback: AsyncCallback<string>) : void;|NA|@ohos.data.fileAccess.d.ts| 208|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:mkDir(parentUri: string, displayName: string) : Promise<string>;|NA|@ohos.data.fileAccess.d.ts| 209|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:mkDir(parentUri: string, displayName: string, callback: AsyncCallback<string>) : void;|NA|@ohos.data.fileAccess.d.ts| 210|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:delete(uri: string) : Promise<number>;|NA|@ohos.data.fileAccess.d.ts| 211|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:delete(uri: string, callback: AsyncCallback<number>) : void;|NA|@ohos.data.fileAccess.d.ts| 212|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:move(sourceFile: string, destFile: string) : Promise<string>;|NA|@ohos.data.fileAccess.d.ts| 213|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:move(sourceFile: string, destFile: string, callback: AsyncCallback<string>) : void;|NA|@ohos.data.fileAccess.d.ts| 214|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:rename(uri: string, displayName: string) : Promise<string>;|NA|@ohos.data.fileAccess.d.ts| 215|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:rename(uri: string, displayName: string, callback: AsyncCallback<string>) : void;|NA|@ohos.data.fileAccess.d.ts| 216|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:access(sourceFileUri: string) : Promise<boolean>;|NA|@ohos.data.fileAccess.d.ts| 217|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:access(sourceFileUri: string, callback: AsyncCallback<boolean>) : void;|NA|@ohos.data.fileAccess.d.ts| 218|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:getRoots(): Promise<RootIterator>;|NA|@ohos.data.fileAccess.d.ts| 219|删除|模块名: ohos.data.fileAccess<br>类名: FileAccessHelper<br>方法 or 属性:getRoots(callback:AsyncCallback<RootIterator>) : void;|NA|@ohos.data.fileAccess.d.ts| 220|删除|模块名: ohos.environment<br>类名: Environment|NA|@ohos.environment.d.ts| 221|删除|模块名: ohos.environment<br>类名: Environment<br>方法 or 属性:function getStorageDataDir(callback: AsyncCallback<string>): void;|NA|@ohos.environment.d.ts| 222|删除|模块名: ohos.environment<br>类名: Environment<br>方法 or 属性:function getStorageDataDir(): Promise<string>;|NA|@ohos.environment.d.ts| 223|删除|模块名: ohos.environment<br>类名: Environment<br>方法 or 属性:function getUserDataDir(callback: AsyncCallback<string>): void;|NA|@ohos.environment.d.ts| 224|删除|模块名: ohos.environment<br>类名: Environment<br>方法 or 属性:function getUserDataDir(): Promise<string>;|NA|@ohos.environment.d.ts| 225|删除|模块名: ohos.fileExtensionInfo<br>类名: fileExtensionInfo|NA|@ohos.fileExtensionInfo.d.ts| 226|删除|模块名: ohos.fileExtensionInfo<br>类名: DeviceType|NA|@ohos.fileExtensionInfo.d.ts| 227|删除|模块名: ohos.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性:DEVICE_LOCAL_DISK = 1|NA|@ohos.fileExtensionInfo.d.ts| 228|删除|模块名: ohos.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性:DEVICE_SHARED_DISK|NA|@ohos.fileExtensionInfo.d.ts| 229|删除|模块名: ohos.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性:DEVICE_SHARED_TERMINAL|NA|@ohos.fileExtensionInfo.d.ts| 230|删除|模块名: ohos.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性:DEVICE_NETWORK_NEIGHBORHOODS|NA|@ohos.fileExtensionInfo.d.ts| 231|删除|模块名: ohos.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性:DEVICE_EXTERNAL_MTP|NA|@ohos.fileExtensionInfo.d.ts| 232|删除|模块名: ohos.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性:DEVICE_EXTERNAL_USB|NA|@ohos.fileExtensionInfo.d.ts| 233|删除|模块名: ohos.fileExtensionInfo<br>类名: DeviceType<br>方法 or 属性:DEVICE_EXTERNAL_CLOUD|NA|@ohos.fileExtensionInfo.d.ts| 234|删除|模块名: ohos.fileExtensionInfo<br>类名: DeviceFlag|NA|@ohos.fileExtensionInfo.d.ts| 235|删除|模块名: ohos.fileExtensionInfo<br>类名: DeviceFlag<br>方法 or 属性:const SUPPORTS_READ = 0b1;|NA|@ohos.fileExtensionInfo.d.ts| 236|删除|模块名: ohos.fileExtensionInfo<br>类名: DeviceFlag<br>方法 or 属性:const SUPPORTS_WRITE = 0b10;|NA|@ohos.fileExtensionInfo.d.ts| 237|删除|模块名: ohos.fileExtensionInfo<br>类名: DocumentFlag|NA|@ohos.fileExtensionInfo.d.ts| 238|删除|模块名: ohos.fileExtensionInfo<br>类名: DocumentFlag<br>方法 or 属性:const REPRESENTS_FILE = 0b1;|NA|@ohos.fileExtensionInfo.d.ts| 239|删除|模块名: ohos.fileExtensionInfo<br>类名: DocumentFlag<br>方法 or 属性:const REPRESENTS_DIR = 0b10;|NA|@ohos.fileExtensionInfo.d.ts| 240|删除|模块名: ohos.fileExtensionInfo<br>类名: DocumentFlag<br>方法 or 属性:const SUPPORTS_READ = 0b100;|NA|@ohos.fileExtensionInfo.d.ts| 241|删除|模块名: ohos.fileExtensionInfo<br>类名: DocumentFlag<br>方法 or 属性:const SUPPORTS_WRITE = 0b1000;|NA|@ohos.fileExtensionInfo.d.ts| 242|删除|模块名: ohos.securityLabel<br>类名: securityLabel|NA|@ohos.securityLabel.d.ts| 243|删除|模块名: ohos.securityLabel<br>类名: dataLevel<br>方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.securityLabel.d.ts| 244|删除|模块名: ohos.securityLabel<br>类名: dataLevel<br>方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.securityLabel.d.ts| 245|删除|模块名: ohos.securityLabel<br>类名: dataLevel<br>方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.securityLabel.d.ts| 246|删除|模块名: ohos.securityLabel<br>类名: dataLevel<br>方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.securityLabel.d.ts| 247|删除|模块名: ohos.securityLabel<br>类名: dataLevel<br>方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.securityLabel.d.ts| 248|删除|模块名: ohos.securityLabel<br>类名: securityLabel<br>方法 or 属性:function setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void>): void;|NA|@ohos.securityLabel.d.ts| 249|删除|模块名: ohos.securityLabel<br>类名: securityLabel<br>方法 or 属性:function setSecurityLabel(path:string, type:dataLevel): Promise<void>;|NA|@ohos.securityLabel.d.ts| 250|删除|模块名: ohos.securityLabel<br>类名: securityLabel<br>方法 or 属性:function setSecurityLabelSync(path:string, type:dataLevel): void;|NA|@ohos.securityLabel.d.ts| 251|删除|模块名: ohos.securityLabel<br>类名: securityLabel<br>方法 or 属性:function getSecurityLabel(path:string, callback: AsyncCallback<string>): void;|NA|@ohos.securityLabel.d.ts| 252|删除|模块名: ohos.securityLabel<br>类名: securityLabel<br>方法 or 属性:function getSecurityLabel(path:string): Promise<string>;|NA|@ohos.securityLabel.d.ts| 253|删除|模块名: ohos.securityLabel<br>类名: securityLabel<br>方法 or 属性:function getSecurityLabelSync(path:string): string;|NA|@ohos.securityLabel.d.ts| 254|废弃版本有变化|类名:fileIO<br>方法 or 属性:function access(path: string, mode?: number): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function access(path: string, mode?: number): Promise<void>;<br>废弃版本:9<br>代替接口:ohos.file.fs.access |@ohos.fileio.d.ts| 255|废弃版本有变化|类名:fileIO<br>方法 or 属性:function access(path: string, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function access(path: string, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 256|废弃版本有变化|类名:fileIO<br>方法 or 属性:function access(path: string, mode: number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function access(path: string, mode: number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 257|废弃版本有变化|类名:fileIO<br>方法 or 属性:function accessSync(path: string, mode?: number): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function accessSync(path: string, mode?: number): void;<br>废弃版本:9<br>代替接口:ohos.file.fs.accessSync |@ohos.fileio.d.ts| 258|废弃版本有变化|类名:fileIO<br>方法 or 属性:function close(fd: number): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function close(fd: number): Promise<void>;<br>废弃版本:9<br>代替接口:ohos.file.fs.close |@ohos.fileio.d.ts| 259|废弃版本有变化|类名:fileIO<br>方法 or 属性:function close(fd: number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function close(fd: number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 260|废弃版本有变化|类名:fileIO<br>方法 or 属性:function closeSync(fd: number): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function closeSync(fd: number): void;<br>废弃版本:9<br>代替接口:ohos.file.fs.closeSync |@ohos.fileio.d.ts| 261|废弃版本有变化|类名:fileIO<br>方法 or 属性:function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise<void>;<br>废弃版本:9<br>代替接口:ohos.file.fs.copyFile |@ohos.fileio.d.ts| 262|废弃版本有变化|类名:fileIO<br>方法 or 属性:function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 263|废弃版本有变化|类名:fileIO<br>方法 or 属性:function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 264|废弃版本有变化|类名:fileIO<br>方法 or 属性:function copyFileSync(src: string \| number, dest: string \| number, mode?: number): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function copyFileSync(src: string \| number, dest: string \| number, mode?: number): void;<br>废弃版本:9<br>代替接口:ohos.file.fs.copyFileSync |@ohos.fileio.d.ts| 265|废弃版本有变化|类名:fileIO<br>方法 or 属性:function createStream(path: string, mode: string): Promise<Stream>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function createStream(path: string, mode: string): Promise<Stream>;<br>废弃版本:9<br>代替接口:ohos.file.fs.createStream |@ohos.fileio.d.ts| 266|废弃版本有变化|类名:fileIO<br>方法 or 属性:function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 267|废弃版本有变化|类名:fileIO<br>方法 or 属性:function createStreamSync(path: string, mode: string): Stream;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function createStreamSync(path: string, mode: string): Stream;<br>废弃版本:9<br>代替接口:ohos.file.fs.createStreamSync |@ohos.fileio.d.ts| 268|废弃版本有变化|类名:fileIO<br>方法 or 属性:function chown(path: string, uid: number, gid: number): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function chown(path: string, uid: number, gid: number): Promise<void>;<br>废弃版本:9<br>代替接口:N/A|@ohos.fileio.d.ts| 269|废弃版本有变化|类名:fileIO<br>方法 or 属性:function chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 270|废弃版本有变化|类名:fileIO<br>方法 or 属性:function chownSync(path: string, uid: number, gid: number): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function chownSync(path: string, uid: number, gid: number): void;<br>废弃版本:9<br>代替接口:N/A|@ohos.fileio.d.ts| 271|废弃版本有变化|类名:fileIO<br>方法 or 属性:function chmod(path: string, mode: number): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function chmod(path: string, mode: number): Promise<void>;<br>废弃版本:9<br>代替接口:N/A|@ohos.fileio.d.ts| 272|废弃版本有变化|类名:fileIO<br>方法 or 属性:function chmod(path: string, mode: number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function chmod(path: string, mode: number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 273|废弃版本有变化|类名:fileIO<br>方法 or 属性:function chmodSync(path: string, mode: number): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function chmodSync(path: string, mode: number): void;<br>废弃版本:9<br>代替接口:N/A|@ohos.fileio.d.ts| 274|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fsync(fd: number): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fsync(fd: number): Promise<void>;<br>废弃版本:9<br>代替接口:ohos.file.fs.fsync |@ohos.fileio.d.ts| 275|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fsync(fd: number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fsync(fd: number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 276|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fsyncSync(fd: number): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fsyncSync(fd: number): void;<br>废弃版本:9<br>代替接口:ohos.file.fs.fsyncSync |@ohos.fileio.d.ts| 277|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fdatasync(fd: number): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fdatasync(fd: number): Promise<void>;<br>废弃版本:9<br>代替接口:ohos.file.fs.fdatasync |@ohos.fileio.d.ts| 278|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fdatasync(fd: number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fdatasync(fd: number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 279|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fdatasyncSync(fd: number): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fdatasyncSync(fd: number): void;<br>废弃版本:9<br>代替接口:ohos.file.fs.fdatasyncSync |@ohos.fileio.d.ts| 280|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fchown(fd: number, uid: number, gid: number): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fchown(fd: number, uid: number, gid: number): Promise<void>;<br>废弃版本:9<br>代替接口:N/A|@ohos.fileio.d.ts| 281|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 282|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fchownSync(fd: number, uid: number, gid: number): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fchownSync(fd: number, uid: number, gid: number): void;<br>废弃版本:9<br>代替接口:N/A|@ohos.fileio.d.ts| 283|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fchmod(fd: number, mode: number): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fchmod(fd: number, mode: number): Promise<void>;<br>废弃版本:9<br>代替接口:N/A|@ohos.fileio.d.ts| 284|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fchmod(fd: number, mode: number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fchmod(fd: number, mode: number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 285|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fchmodSync(fd: number, mode: number): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fchmodSync(fd: number, mode: number): void;<br>废弃版本:9<br>代替接口:N/A|@ohos.fileio.d.ts| 286|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fdopenStream(fd: number, mode: string): Promise<Stream>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fdopenStream(fd: number, mode: string): Promise<Stream>;<br>废弃版本:9<br>代替接口:ohos.file.fs.fdopenStream |@ohos.fileio.d.ts| 287|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 288|废弃版本有变化|类名:fileIO<br>方法 or 属性:function fdopenStreamSync(fd: number, mode: string): Stream;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function fdopenStreamSync(fd: number, mode: string): Stream;<br>废弃版本:9<br>代替接口:ohos.file.fs.fdopenStreamSync |@ohos.fileio.d.ts| 289|废弃版本有变化|类名:fileIO<br>方法 or 属性:function hash(path: string, algorithm: string): Promise<string>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function hash(path: string, algorithm: string): Promise<string>;<br>废弃版本:9<br>代替接口:ohos.file.hash.hash |@ohos.fileio.d.ts| 290|废弃版本有变化|类名:fileIO<br>方法 or 属性:function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 291|废弃版本有变化|类名:fileIO<br>方法 or 属性:function lchown(path: string, uid: number, gid: number): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function lchown(path: string, uid: number, gid: number): Promise<void>;<br>废弃版本:9<br>代替接口:N/A|@ohos.fileio.d.ts| 292|废弃版本有变化|类名:fileIO<br>方法 or 属性:function lchown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function lchown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 293|废弃版本有变化|类名:fileIO<br>方法 or 属性:function lchownSync(path: string, uid: number, gid: number): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function lchownSync(path: string, uid: number, gid: number): void;<br>废弃版本:9<br>代替接口:N/A|@ohos.fileio.d.ts| 294|废弃版本有变化|类名:fileIO<br>方法 or 属性:function lstat(path: string): Promise<Stat>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function lstat(path: string): Promise<Stat>;<br>废弃版本:9<br>代替接口:ohos.file.fs.lstat |@ohos.fileio.d.ts| 295|废弃版本有变化|类名:fileIO<br>方法 or 属性:function lstat(path: string, callback: AsyncCallback<Stat>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function lstat(path: string, callback: AsyncCallback<Stat>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 296|废弃版本有变化|类名:fileIO<br>方法 or 属性:function lstatSync(path: string): Stat;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function lstatSync(path: string): Stat;<br>废弃版本:9<br>代替接口:ohos.file.fs.lstatSync |@ohos.fileio.d.ts| 297|废弃版本有变化|类名:fileIO<br>方法 or 属性:function mkdir(path: string, mode?: number): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function mkdir(path: string, mode?: number): Promise<void>;<br>废弃版本:9<br>代替接口:ohos.file.fs.mkdir |@ohos.fileio.d.ts| 298|废弃版本有变化|类名:fileIO<br>方法 or 属性:function mkdir(path: string, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function mkdir(path: string, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 299|废弃版本有变化|类名:fileIO<br>方法 or 属性:function mkdir(path: string, mode: number, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function mkdir(path: string, mode: number, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 300|废弃版本有变化|类名:fileIO<br>方法 or 属性:function mkdirSync(path: string, mode?: number): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function mkdirSync(path: string, mode?: number): void;<br>废弃版本:9<br>代替接口:ohos.file.fs.mkdirSync |@ohos.fileio.d.ts| 301|废弃版本有变化|类名:fileIO<br>方法 or 属性:function mkdtemp(prefix: string): Promise<string>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function mkdtemp(prefix: string): Promise<string>;<br>废弃版本:9<br>代替接口:ohos.file.fs.mkdtemp |@ohos.fileio.d.ts| 302|废弃版本有变化|类名:fileIO<br>方法 or 属性:function mkdtemp(prefix: string, callback: AsyncCallback<string>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function mkdtemp(prefix: string, callback: AsyncCallback<string>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 303|废弃版本有变化|类名:fileIO<br>方法 or 属性:function mkdtempSync(prefix: string): string;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function mkdtempSync(prefix: string): string;<br>废弃版本:9<br>代替接口:ohos.file.fs.mkdtempSync |@ohos.fileio.d.ts| 304|废弃版本有变化|类名:fileIO<br>方法 or 属性:function readText(filePath: string, options?: {<br> position?: number;<br> length?: number;<br> encoding?: string;<br>}): Promise<string>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function readText(filePath: string, options?: {<br> position?: number;<br> length?: number;<br> encoding?: string;<br>}): Promise<string>;<br>废弃版本:9<br>代替接口:ohos.file.fs.readText |@ohos.fileio.d.ts| 305|废弃版本有变化|类名:fileIO<br>方法 or 属性:function readText(filePath: string, options: {<br> position?: number;<br> length?: number;<br> encoding?: string;<br>}, callback: AsyncCallback<string>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function readText(filePath: string, options: {<br> position?: number;<br> length?: number;<br> encoding?: string;<br>}, callback: AsyncCallback<string>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 306|废弃版本有变化|类名:fileIO<br>方法 or 属性:function readTextSync(filePath: string, options?: {<br> position?: number;<br> length?: number;<br> encoding?: string;<br>}): string;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function readTextSync(filePath: string, options?: {<br> position?: number;<br> length?: number;<br> encoding?: string;<br>}): string;<br>废弃版本:9<br>代替接口:ohos.file.fs.readTextSync |@ohos.fileio.d.ts| 307|废弃版本有变化|类名:fileIO<br>方法 or 属性:function rename(oldPath: string, newPath: string): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function rename(oldPath: string, newPath: string): Promise<void>;<br>废弃版本:9<br>代替接口:ohos.file.fs.rename |@ohos.fileio.d.ts| 308|废弃版本有变化|类名:fileIO<br>方法 or 属性:function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 309|废弃版本有变化|类名:fileIO<br>方法 or 属性:function renameSync(oldPath: string, newPath: string): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function renameSync(oldPath: string, newPath: string): void;<br>废弃版本:9<br>代替接口:ohos.file.fs.renameSync |@ohos.fileio.d.ts| 310|废弃版本有变化|类名:fileIO<br>方法 or 属性:function rmdir(path: string): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function rmdir(path: string): Promise<void>;<br>废弃版本:9<br>代替接口:ohos.file.fs.rmdir |@ohos.fileio.d.ts| 311|废弃版本有变化|类名:fileIO<br>方法 or 属性:function rmdir(path: string, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function rmdir(path: string, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 312|废弃版本有变化|类名:fileIO<br>方法 or 属性:function rmdirSync(path: string): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function rmdirSync(path: string): void;<br>废弃版本:9<br>代替接口:ohos.file.fs.rmdirSync |@ohos.fileio.d.ts| 313|废弃版本有变化|类名:fileIO<br>方法 or 属性:function symlink(target: string, srcPath: string): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function symlink(target: string, srcPath: string): Promise<void>;<br>废弃版本:9<br>代替接口:ohos.file.fs.symlink |@ohos.fileio.d.ts| 314|废弃版本有变化|类名:fileIO<br>方法 or 属性:function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 315|废弃版本有变化|类名:fileIO<br>方法 or 属性:function symlinkSync(target: string, srcPath: string): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function symlinkSync(target: string, srcPath: string): void;<br>废弃版本:9<br>代替接口:ohos.file.fs.symlinkSync |@ohos.fileio.d.ts| 316|废弃版本有变化|类名:fileIO<br>方法 or 属性:function unlink(path: string): Promise<void>;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function unlink(path: string): Promise<void>;<br>废弃版本:9<br>代替接口:ohos.file.fs.unlink |@ohos.fileio.d.ts| 317|废弃版本有变化|类名:fileIO<br>方法 or 属性:function unlink(path: string, callback: AsyncCallback<void>): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function unlink(path: string, callback: AsyncCallback<void>): void;<br>废弃版本:9|@ohos.fileio.d.ts| 318|废弃版本有变化|类名:fileIO<br>方法 or 属性:function unlinkSync(path: string): void;<br>废弃版本:N/A|类名:fileIO<br>方法 or 属性:function unlinkSync(path: string): void;<br>废弃版本:9<br>代替接口:ohos.file.fs.unlinkSync |@ohos.fileio.d.ts| 319|废弃版本有变化|类名:Stream<br>废弃版本:N/A|类名:Stream<br>废弃版本:9<br>代替接口:ohos.file.fs.Stream |@ohos.fileio.d.ts| 320|废弃版本有变化|类名:Statfs<br>方法 or 属性:function getFreeBytes(path: string, callback: AsyncCallback<number>): void;<br>废弃版本:N/A|类名:Statfs<br>方法 or 属性:function getFreeBytes(path: string, callback: AsyncCallback<number>): void;<br>废弃版本:9<br>代替接口:ohos.file.statvfs.getFreeSize |@ohos.statfs.d.ts| 321|废弃版本有变化|类名:Statfs<br>方法 or 属性:function getFreeBytes(path: string): Promise<number>;<br>废弃版本:N/A|类名:Statfs<br>方法 or 属性:function getFreeBytes(path: string): Promise<number>;<br>废弃版本:9|@ohos.statfs.d.ts| 322|废弃版本有变化|类名:Statfs<br>方法 or 属性:function getTotalBytes(path: string, callback: AsyncCallback<number>): void;<br>废弃版本:N/A|类名:Statfs<br>方法 or 属性:function getTotalBytes(path: string, callback: AsyncCallback<number>): void;<br>废弃版本:9<br>代替接口:ohos.file.statvfs.getTotalSize |@ohos.statfs.d.ts| 323|废弃版本有变化|类名:Statfs<br>方法 or 属性:function getTotalBytes(path: string): Promise<number>;<br>废弃版本:N/A|类名:Statfs<br>方法 or 属性:function getTotalBytes(path: string): Promise<number>;<br>废弃版本:9|@ohos.statfs.d.ts| 324