1| 操作 | 旧版本 | 新版本 | d.ts文件 |
2| ---- | ------ | ------ | -------- |
3|删除|类名:Environment;<br>方法or属性:function getStorageDataDir(callback: AsyncCallback\<string>): void;|NA|@ohos.environment.d.ts|
4|删除|类名:Environment;<br>方法or属性:function getStorageDataDir(): Promise\<string>;|NA|@ohos.environment.d.ts|
5|删除|类名:Environment;<br>方法or属性:function getUserDataDir(callback: AsyncCallback\<string>): void;|NA|@ohos.environment.d.ts|
6|删除|类名:Environment;<br>方法or属性:function getUserDataDir(): Promise\<string>;|NA|@ohos.environment.d.ts|
7|删除|类名:storageStatistics;<br>方法or属性:function getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback\<number>): void;|NA|@ohos.storageStatistics.d.ts|
8|删除|类名:storageStatistics;<br>方法or属性:function getTotalSizeOfVolume(volumeUuid: string): Promise\<number>;|NA|@ohos.storageStatistics.d.ts|
9|删除|类名:storageStatistics;<br>方法or属性:function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback\<number>): void;|NA|@ohos.storageStatistics.d.ts|
10|删除|类名:storageStatistics;<br>方法or属性:function getFreeSizeOfVolume(volumeUuid: string): Promise\<number>;|NA|@ohos.storageStatistics.d.ts|
11|新增|NA|类名:Environment;<br>方法or属性:function getStorageDataDir(): Promise\<string>;|@ohos.file.environment.d.ts|
12|新增|NA|类名:Environment;<br>方法or属性:function getStorageDataDir(callback: AsyncCallback\<string>): void;|@ohos.file.environment.d.ts|
13|新增|NA|类名:Environment;<br>方法or属性:function getUserDataDir(): Promise\<string>;|@ohos.file.environment.d.ts|
14|新增|NA|类名:Environment;<br>方法or属性:function getUserDataDir(callback: AsyncCallback\<string>): void;|@ohos.file.environment.d.ts|
15|新增|NA|类名:fileAccess;<br>方法or属性:function getFileAccessAbilityInfo(callback: AsyncCallback\<Array\<Want>>): void;|@ohos.file.fileAccess.d.ts|
16|新增|NA|类名:fileAccess;<br>方法or属性:function getFileAccessAbilityInfo(): Promise\<Array\<Want>>;|@ohos.file.fileAccess.d.ts|
17|新增|NA|类名:fileAccess;<br>方法or属性:function createFileAccessHelper(context: Context): FileAccessHelper;|@ohos.file.fileAccess.d.ts|
18|新增|NA|类名:fileAccess;<br>方法or属性:function createFileAccessHelper(context: Context, wants: Array\<Want>): FileAccessHelper;|@ohos.file.fileAccess.d.ts|
19|新增|NA|类名:FileInfo;<br>方法or属性:uri: string;|@ohos.file.fileAccess.d.ts|
20|新增|NA|类名:RootInfo;<br>方法or属性:uri: string;|@ohos.file.fileAccess.d.ts|
21|新增|NA|类名:FileInfo;<br>方法or属性:fileName: string;|@ohos.file.fileAccess.d.ts|
22|新增|NA|类名:FileInfo;<br>方法or属性:mode: number;|@ohos.file.fileAccess.d.ts|
23|新增|NA|类名:FileInfo;<br>方法or属性:size: number;|@ohos.file.fileAccess.d.ts|
24|新增|NA|类名:FileInfo;<br>方法or属性:mtime: number;|@ohos.file.fileAccess.d.ts|
25|新增|NA|类名:FileInfo;<br>方法or属性:mimeType: string;|@ohos.file.fileAccess.d.ts|
26|新增|NA|类名:FileInfo;<br>方法or属性:listFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts|
27|新增|NA|类名:RootInfo;<br>方法or属性:listFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts|
28|新增|NA|类名:FileInfo;<br>方法or属性:scanFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts|
29|新增|NA|类名:RootInfo;<br>方法or属性:scanFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts|
30|新增|NA|类名:FileIterator;<br>方法or属性:next(): {value: FileInfo, done: boolean}|@ohos.file.fileAccess.d.ts|
31|新增|NA|类名:RootInfo;<br>方法or属性:deviceType: number;|@ohos.file.fileAccess.d.ts|
32|新增|NA|类名:RootInfo;<br>方法or属性:displayName: string;|@ohos.file.fileAccess.d.ts|
33|新增|NA|类名:RootInfo;<br>方法or属性:deviceFlags: number;|@ohos.file.fileAccess.d.ts|
34|新增|NA|类名:RootIterator;<br>方法or属性:next(): {value: RootInfo, done: boolean}|@ohos.file.fileAccess.d.ts|
35|新增|NA|类名:OPENFLAGS;<br>方法or属性:READ = 0o0|@ohos.file.fileAccess.d.ts|
36|新增|NA|类名:OPENFLAGS;<br>方法or属性:WRITE = 0o1|@ohos.file.fileAccess.d.ts|
37|新增|NA|类名:OPENFLAGS;<br>方法or属性:WRITE_READ = 0o2|@ohos.file.fileAccess.d.ts|
38|新增|NA|类名:FileAccessHelper;<br>方法or属性:openFile(uri: string, flags: OPENFLAGS) : Promise\<number>;|@ohos.file.fileAccess.d.ts|
39|新增|NA|类名:FileAccessHelper;<br>方法or属性:openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback\<number>) : void;|@ohos.file.fileAccess.d.ts|
40|新增|NA|类名:FileAccessHelper;<br>方法or属性:createFile(uri: string, displayName: string) : Promise\<string>;|@ohos.file.fileAccess.d.ts|
41|新增|NA|类名:FileAccessHelper;<br>方法or属性:createFile(uri: string, displayName: string, callback: AsyncCallback\<string>) : void;|@ohos.file.fileAccess.d.ts|
42|新增|NA|类名:FileAccessHelper;<br>方法or属性:mkDir(parentUri: string, displayName: string) : Promise\<string>;|@ohos.file.fileAccess.d.ts|
43|新增|NA|类名:FileAccessHelper;<br>方法or属性:mkDir(parentUri: string, displayName: string, callback: AsyncCallback\<string>) : void;|@ohos.file.fileAccess.d.ts|
44|新增|NA|类名:FileAccessHelper;<br>方法or属性:delete(uri: string) : Promise\<number>;|@ohos.file.fileAccess.d.ts|
45|新增|NA|类名:FileAccessHelper;<br>方法or属性:delete(uri: string, callback: AsyncCallback\<number>) : void;|@ohos.file.fileAccess.d.ts|
46|新增|NA|类名:FileAccessHelper;<br>方法or属性:move(sourceFile: string, destFile: string) : Promise\<string>;|@ohos.file.fileAccess.d.ts|
47|新增|NA|类名:FileAccessHelper;<br>方法or属性:move(sourceFile: string, destFile: string, callback: AsyncCallback\<string>) : void;|@ohos.file.fileAccess.d.ts|
48|新增|NA|类名:FileAccessHelper;<br>方法or属性:rename(uri: string, displayName: string) : Promise\<string>;|@ohos.file.fileAccess.d.ts|
49|新增|NA|类名:FileAccessHelper;<br>方法or属性:rename(uri: string, displayName: string, callback: AsyncCallback\<string>) : void;|@ohos.file.fileAccess.d.ts|
50|新增|NA|类名:FileAccessHelper;<br>方法or属性:access(sourceFileUri: string) : Promise\<boolean>;|@ohos.file.fileAccess.d.ts|
51|新增|NA|类名:FileAccessHelper;<br>方法or属性:access(sourceFileUri: string, callback: AsyncCallback\<boolean>) : void;|@ohos.file.fileAccess.d.ts|
52|新增|NA|类名:FileAccessHelper;<br>方法or属性:getRoots(): Promise\<RootIterator>;|@ohos.file.fileAccess.d.ts|
53|新增|NA|类名:FileAccessHelper;<br>方法or属性:getRoots(callback:AsyncCallback\<RootIterator>) : void;|@ohos.file.fileAccess.d.ts|
54|新增|NA|类名:DeviceType;<br>方法or属性:DEVICE_LOCAL_DISK = 1|@ohos.file.fileExtensionInfo.d.ts|
55|新增|NA|类名:DeviceType;<br>方法or属性:DEVICE_SHARED_DISK|@ohos.file.fileExtensionInfo.d.ts|
56|新增|NA|类名:DeviceType;<br>方法or属性:DEVICE_SHARED_TERMINAL|@ohos.file.fileExtensionInfo.d.ts|
57|新增|NA|类名:DeviceType;<br>方法or属性:DEVICE_NETWORK_NEIGHBORHOODS|@ohos.file.fileExtensionInfo.d.ts|
58|新增|NA|类名:DeviceType;<br>方法or属性:DEVICE_EXTERNAL_MTP|@ohos.file.fileExtensionInfo.d.ts|
59|新增|NA|类名:DeviceType;<br>方法or属性:DEVICE_EXTERNAL_USB|@ohos.file.fileExtensionInfo.d.ts|
60|新增|NA|类名:DeviceType;<br>方法or属性:DEVICE_EXTERNAL_CLOUD|@ohos.file.fileExtensionInfo.d.ts|
61|新增|NA|类名:fileUri;<br>方法or属性:function getUriFromPath(path: string): string;|@ohos.file.fileuri.d.ts|
62|新增|NA|类名:sourcefile;<br>方法or属性:declare function access(path: string): Promise\<boolean>;|@ohos.file.fs.d.ts|
63|新增|NA|类名:sourcefile;<br>方法or属性:declare function access(path: string, callback: AsyncCallback\<boolean>): void;|@ohos.file.fs.d.ts|
64|新增|NA|类名:sourcefile;<br>方法or属性:declare function accessSync(path: string): boolean;|@ohos.file.fs.d.ts|
65|新增|NA|类名:sourcefile;<br>方法or属性:declare function close(file: number \| File): Promise\<void>;|@ohos.file.fs.d.ts|
66|新增|NA|类名:sourcefile;<br>方法or属性:declare function close(file: number \| File, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
67|新增|NA|类名:sourcefile;<br>方法or属性:declare function closeSync(fd: number \| File): void;|@ohos.file.fs.d.ts|
68|新增|NA|类名:sourcefile;<br>方法or属性:declare function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise\<void>;|@ohos.file.fs.d.ts|
69|新增|NA|类名:sourcefile;<br>方法or属性:declare function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
70|新增|NA|类名:sourcefile;<br>方法or属性:declare function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
71|新增|NA|类名:sourcefile;<br>方法or属性:declare function copyFileSync(src: string \| number, dest: string \| number, mode?: number): void;|@ohos.file.fs.d.ts|
72|新增|NA|类名:sourcefile;<br>方法or属性:declare function createStream(path: string, mode: string): Promise\<Stream>;|@ohos.file.fs.d.ts|
73|新增|NA|类名:sourcefile;<br>方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback\<Stream>): void;|@ohos.file.fs.d.ts|
74|新增|NA|类名:sourcefile;<br>方法or属性:declare function createStreamSync(path: string, mode: string): Stream;|@ohos.file.fs.d.ts|
75|新增|NA|类名:sourcefile;<br>方法or属性:declare function fdatasync(fd: number): Promise\<void>;|@ohos.file.fs.d.ts|
76|新增|NA|类名:sourcefile;<br>方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
77|新增|NA|类名:sourcefile;<br>方法or属性:declare function fdatasyncSync(fd: number): void;|@ohos.file.fs.d.ts|
78|新增|NA|类名:sourcefile;<br>方法or属性:declare function fdopenStream(fd: number, mode: string): Promise\<Stream>;|@ohos.file.fs.d.ts|
79|新增|NA|类名:sourcefile;<br>方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback\<Stream>): void;|@ohos.file.fs.d.ts|
80|新增|NA|类名:sourcefile;<br>方法or属性:declare function fdopenStreamSync(fd: number, mode: string): Stream;|@ohos.file.fs.d.ts|
81|新增|NA|类名:sourcefile;<br>方法or属性:declare function fsync(fd: number): Promise\<void>;|@ohos.file.fs.d.ts|
82|新增|NA|类名:sourcefile;<br>方法or属性:declare function fsync(fd: number, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
83|新增|NA|类名:sourcefile;<br>方法or属性:declare function fsyncSync(fd: number): void;|@ohos.file.fs.d.ts|
84|新增|NA|类名:sourcefile;<br>方法or属性:declare function listFile(path: string, options?: {<br>    recursion?: boolean;<br>    listNum?: number;<br>    filter?: Filter;<br>}): Promise\<string[]>;|@ohos.file.fs.d.ts|
85|新增|NA|类名:sourcefile;<br>方法or属性:declare function listFile(path: string, callback: AsyncCallback\<string[]>): void;|@ohos.file.fs.d.ts|
86|新增|NA|类名:sourcefile;<br>方法or属性:declare function listFile(path: string, options: {<br>    recursion?: boolean;<br>    listNum?: number;<br>    filter?: Filter;<br>}, callback: AsyncCallback\<string[]>): void;|@ohos.file.fs.d.ts|
87|新增|NA|类名:sourcefile;<br>方法or属性:declare function listFileSync(path: string, options?: {<br>    recursion?: boolean;<br>    listNum?: number;<br>    filter?: Filter;<br>}): string[];|@ohos.file.fs.d.ts|
88|新增|NA|类名:sourcefile;<br>方法or属性:declare function lstat(path: string): Promise\<Stat>;|@ohos.file.fs.d.ts|
89|新增|NA|类名:sourcefile;<br>方法or属性:declare function lstat(path: string, callback: AsyncCallback\<Stat>): void;|@ohos.file.fs.d.ts|
90|新增|NA|类名:sourcefile;<br>方法or属性:declare function lstatSync(path: string): Stat;|@ohos.file.fs.d.ts|
91|新增|NA|类名:sourcefile;<br>方法or属性:declare function mkdir(path: string): Promise\<void>;|@ohos.file.fs.d.ts|
92|新增|NA|类名:sourcefile;<br>方法or属性:declare function mkdir(path: string, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
93|新增|NA|类名:sourcefile;<br>方法or属性:declare function mkdirSync(path: string): void;|@ohos.file.fs.d.ts|
94|新增|NA|类名:sourcefile;<br>方法or属性:declare function mkdtemp(prefix: string): Promise\<string>;|@ohos.file.fs.d.ts|
95|新增|NA|类名:sourcefile;<br>方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback\<string>): void;|@ohos.file.fs.d.ts|
96|新增|NA|类名:sourcefile;<br>方法or属性:declare function mkdtempSync(prefix: string): string;|@ohos.file.fs.d.ts|
97|新增|NA|类名:sourcefile;<br>方法or属性:declare function moveFile(src: string, dest: string, mode?: number): Promise\<void>;|@ohos.file.fs.d.ts|
98|新增|NA|类名:sourcefile;<br>方法or属性:declare function moveFile(src: string, dest: string, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
99|新增|NA|类名:sourcefile;<br>方法or属性:declare function moveFile(src: string, dest: string, mode: number, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
100|新增|NA|类名:sourcefile;<br>方法or属性:declare function moveFileSync(src: string, dest: string, mode?: number): void;|@ohos.file.fs.d.ts|
101|新增|NA|类名:sourcefile;<br>方法or属性:declare function open(path: string, mode?: number): Promise\<File>;|@ohos.file.fs.d.ts|
102|新增|NA|类名:sourcefile;<br>方法or属性:declare function open(path: string, callback: AsyncCallback\<File>): void;|@ohos.file.fs.d.ts|
103|新增|NA|类名:sourcefile;<br>方法or属性:declare function open(path: string, mode: number, callback: AsyncCallback\<File>): void;|@ohos.file.fs.d.ts|
104|新增|NA|类名:sourcefile;<br>方法or属性:declare function openSync(path: string, mode?: number): File;|@ohos.file.fs.d.ts|
105|新增|NA|类名:sourcefile;<br>方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options?: {<br>    offset?: number;<br>    length?: number;<br>}): Promise\<number>;|@ohos.file.fs.d.ts|
106|新增|NA|类名:sourcefile;<br>方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback\<number>): void;|@ohos.file.fs.d.ts|
107|新增|NA|类名:sourcefile;<br>方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options: {<br>    offset?: number;<br>    length?: number;<br>}, callback: AsyncCallback\<number>): void;|@ohos.file.fs.d.ts|
108|新增|NA|类名:sourcefile;<br>方法or属性:declare function readSync(fd: number, buffer: ArrayBuffer, options?: {<br>    offset?: number;<br>    length?: number;<br>}): number;|@ohos.file.fs.d.ts|
109|新增|NA|类名:sourcefile;<br>方法or属性:declare function readText(filePath: string, options?: {<br>    offset?: number;<br>    length?: number;<br>    encoding?: string;<br>}): Promise\<string>;|@ohos.file.fs.d.ts|
110|新增|NA|类名:sourcefile;<br>方法or属性:declare function readText(filePath: string, callback: AsyncCallback\<string>): void;|@ohos.file.fs.d.ts|
111|新增|NA|类名:sourcefile;<br>方法or属性:declare function readText(filePath: string, options: {<br>    offset?: number;<br>    length?: number;<br>    encoding?: string;<br>}, callback: AsyncCallback\<string>): void;|@ohos.file.fs.d.ts|
112|新增|NA|类名:sourcefile;<br>方法or属性:declare function readTextSync(filePath: string, options?: {<br>    offset?: number;<br>    length?: number;<br>    encoding?: string;<br>}): string;|@ohos.file.fs.d.ts|
113|新增|NA|类名:sourcefile;<br>方法or属性:declare function rename(oldPath: string, newPath: string): Promise\<void>;|@ohos.file.fs.d.ts|
114|新增|NA|类名:sourcefile;<br>方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
115|新增|NA|类名:sourcefile;<br>方法or属性:declare function renameSync(oldPath: string, newPath: string): void;|@ohos.file.fs.d.ts|
116|新增|NA|类名:sourcefile;<br>方法or属性:declare function rmdir(path: string): Promise\<void>;|@ohos.file.fs.d.ts|
117|新增|NA|类名:sourcefile;<br>方法or属性:declare function rmdir(path: string, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
118|新增|NA|类名:sourcefile;<br>方法or属性:declare function rmdirSync(path: string): void;|@ohos.file.fs.d.ts|
119|新增|NA|类名:sourcefile;<br>方法or属性:declare function stat(file: string \| number): Promise\<Stat>;|@ohos.file.fs.d.ts|
120|新增|NA|类名:sourcefile;<br>方法or属性:declare function stat(file: string \| number, callback: AsyncCallback\<Stat>): void;|@ohos.file.fs.d.ts|
121|新增|NA|类名:sourcefile;<br>方法or属性:declare function statSync(file: string \| number): Stat;|@ohos.file.fs.d.ts|
122|新增|NA|类名:sourcefile;<br>方法or属性:declare function symlink(target: string, srcPath: string): Promise\<void>;|@ohos.file.fs.d.ts|
123|新增|NA|类名:sourcefile;<br>方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
124|新增|NA|类名:sourcefile;<br>方法or属性:declare function symlinkSync(target: string, srcPath: string): void;|@ohos.file.fs.d.ts|
125|新增|NA|类名:sourcefile;<br>方法or属性:declare function truncate(file: string \| number, len?: number): Promise\<void>;|@ohos.file.fs.d.ts|
126|新增|NA|类名:sourcefile;<br>方法or属性:declare function truncate(file: string \| number, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
127|新增|NA|类名:sourcefile;<br>方法or属性:declare function truncate(file: string \| number, len: number, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
128|新增|NA|类名:sourcefile;<br>方法or属性:declare function truncateSync(file: string \| number, len?: number): void;|@ohos.file.fs.d.ts|
129|新增|NA|类名:sourcefile;<br>方法or属性:declare function unlink(path: string): Promise\<void>;|@ohos.file.fs.d.ts|
130|新增|NA|类名:sourcefile;<br>方法or属性:declare function unlink(path: string, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
131|新增|NA|类名:sourcefile;<br>方法or属性:declare function unlinkSync(path: string): void;|@ohos.file.fs.d.ts|
132|新增|NA|类名:sourcefile;<br>方法or属性:declare function write(fd: number, buffer: ArrayBuffer \| string, options?: {<br>    offset?: number;<br>    length?: number;<br>    encoding?: string;<br>}): Promise\<number>;|@ohos.file.fs.d.ts|
133|新增|NA|类名:sourcefile;<br>方法or属性:declare function write(fd: number, buffer: ArrayBuffer \| string, callback: AsyncCallback\<number>): void;|@ohos.file.fs.d.ts|
134|新增|NA|类名:sourcefile;<br>方法or属性:declare function write(fd: number, buffer: ArrayBuffer \| string, options: {<br>    offset?: number;<br>    length?: number;<br>    encoding?: string;<br>}, callback: AsyncCallback\<number>): void;|@ohos.file.fs.d.ts|
135|新增|NA|类名:sourcefile;<br>方法or属性:declare function writeSync(fd: number, buffer: ArrayBuffer \| string, options?: {<br>    offset?: number;<br>    length?: number;<br>    encoding?: string;<br>}): number;|@ohos.file.fs.d.ts|
136|新增|NA|类名:sourcefile;<br>方法or属性:export type Filter = {<br>    /**<br>     * @type {Array\<string>}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    suffix?: Array\<string>;<br>    /**<br>     * @type {Array\<string>}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    displayName?: Array\<string>;<br>    /**<br>     * @type {Array\<string>}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    mimeType?: Array\<string>;<br>    /**<br>     * @type {number}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    fileSizeOver?: number;<br>    /**<br>     * @type {number}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    lastModifiedAfter?: number;<br>    /**<br>     * @type {boolean}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    excludeMedia?: boolean;<br>}|@ohos.file.fs.d.ts|
137|新增|NA|类名:File;<br>方法or属性:readonly fd: number;|@ohos.file.fs.d.ts|
138|新增|NA|类名:File;<br>方法or属性:lock(exclusive?: boolean): Promise\<void>;|@ohos.file.fs.d.ts|
139|新增|NA|类名:File;<br>方法or属性:lock(callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
140|新增|NA|类名:File;<br>方法or属性:lock(exclusive: boolean, callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
141|新增|NA|类名:File;<br>方法or属性:tryLock(exclusive?: boolean): void;|@ohos.file.fs.d.ts|
142|新增|NA|类名:File;<br>方法or属性:unlock(): void;|@ohos.file.fs.d.ts|
143|新增|NA|类名:Stat;<br>方法or属性:readonly ino: bigint;|@ohos.file.fs.d.ts|
144|新增|NA|类名:Stat;<br>方法or属性:readonly mode: number;|@ohos.file.fs.d.ts|
145|新增|NA|类名:Stat;<br>方法or属性:readonly uid: number;|@ohos.file.fs.d.ts|
146|新增|NA|类名:Stat;<br>方法or属性:readonly gid: number;|@ohos.file.fs.d.ts|
147|新增|NA|类名:Stat;<br>方法or属性:readonly size: number;|@ohos.file.fs.d.ts|
148|新增|NA|类名:Stat;<br>方法or属性:readonly atime: number;|@ohos.file.fs.d.ts|
149|新增|NA|类名:Stat;<br>方法or属性:readonly mtime: number;|@ohos.file.fs.d.ts|
150|新增|NA|类名:Stat;<br>方法or属性:readonly ctime: number;|@ohos.file.fs.d.ts|
151|新增|NA|类名:Stat;<br>方法or属性:isBlockDevice(): boolean;|@ohos.file.fs.d.ts|
152|新增|NA|类名:Stat;<br>方法or属性:isCharacterDevice(): boolean;|@ohos.file.fs.d.ts|
153|新增|NA|类名:Stat;<br>方法or属性:isDirectory(): boolean;|@ohos.file.fs.d.ts|
154|新增|NA|类名:Stat;<br>方法or属性:isFIFO(): boolean;|@ohos.file.fs.d.ts|
155|新增|NA|类名:Stat;<br>方法or属性:isFile(): boolean;|@ohos.file.fs.d.ts|
156|新增|NA|类名:Stat;<br>方法or属性:isSocket(): boolean;|@ohos.file.fs.d.ts|
157|新增|NA|类名:Stat;<br>方法or属性:isSymbolicLink(): boolean;|@ohos.file.fs.d.ts|
158|新增|NA|类名:Stream;<br>方法or属性:close(): Promise\<void>;|@ohos.file.fs.d.ts|
159|新增|NA|类名:Stream;<br>方法or属性:close(callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
160|新增|NA|类名:Stream;<br>方法or属性:closeSync(): void;|@ohos.file.fs.d.ts|
161|新增|NA|类名:Stream;<br>方法or属性:flush(): Promise\<void>;|@ohos.file.fs.d.ts|
162|新增|NA|类名:Stream;<br>方法or属性:flush(callback: AsyncCallback\<void>): void;|@ohos.file.fs.d.ts|
163|新增|NA|类名:Stream;<br>方法or属性:flushSync(): void;|@ohos.file.fs.d.ts|
164|新增|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|
165|新增|NA|类名:Stream;<br>方法or属性:write(buffer: ArrayBuffer \| string, callback: AsyncCallback\<number>): void;|@ohos.file.fs.d.ts|
166|新增|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|
167|新增|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|
168|新增|NA|类名:Stream;<br>方法or属性:read(buffer: ArrayBuffer, options?: {<br>        offset?: number;<br>        length?: number;<br>    }): Promise\<number>;|@ohos.file.fs.d.ts|
169|新增|NA|类名:Stream;<br>方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback\<number>): void;|@ohos.file.fs.d.ts|
170|新增|NA|类名:Stream;<br>方法or属性:read(buffer: ArrayBuffer, options: {<br>        offset?: number;<br>        length?: number;<br>    }, callback: AsyncCallback\<number>): void;|@ohos.file.fs.d.ts|
171|新增|NA|类名:Stream;<br>方法or属性:readSync(buffer: ArrayBuffer, options?: {<br>        offset?: number;<br>        length?: number;<br>    }): number;|@ohos.file.fs.d.ts|
172|新增|NA|类名:hash;<br>方法or属性:function hash(path: string, algorithm: string): Promise\<string>;|@ohos.file.hash.d.ts|
173|新增|NA|类名:hash;<br>方法or属性:function hash(path: string, algorithm: string, callback: AsyncCallback\<string>): void;|@ohos.file.hash.d.ts|
174|新增|NA|类名:PhotoViewMIMETypes;<br>方法or属性:IMAGE_TYPE = "image/*"|@ohos.file.picker.d.ts|
175|新增|NA|类名:PhotoViewMIMETypes;<br>方法or属性:VIDEO_TYPE = "video/*"|@ohos.file.picker.d.ts|
176|新增|NA|类名:PhotoViewMIMETypes;<br>方法or属性:IMAGE_VIDEO_TYPE = "*/*"|@ohos.file.picker.d.ts|
177|新增|NA|类名:PhotoSelectOptions;<br>方法or属性:MIMEType?: PhotoViewMIMETypes;|@ohos.file.picker.d.ts|
178|新增|NA|类名:PhotoSelectOptions;<br>方法or属性:maxSelectNumber?: number;|@ohos.file.picker.d.ts|
179|新增|NA|类名:PhotoSelectResult;<br>方法or属性:photoUris: Array\<string>;|@ohos.file.picker.d.ts|
180|新增|NA|类名:PhotoSelectResult;<br>方法or属性:isOriginalPhoto: boolean;|@ohos.file.picker.d.ts|
181|新增|NA|类名:PhotoSaveOptions;<br>方法or属性:newFileNames?: Array\<string>;|@ohos.file.picker.d.ts|
182|新增|NA|类名:DocumentSaveOptions;<br>方法or属性:newFileNames?: Array\<string>;|@ohos.file.picker.d.ts|
183|新增|NA|类名:AudioSaveOptions;<br>方法or属性:newFileNames?: Array\<string>;|@ohos.file.picker.d.ts|
184|新增|NA|类名:PhotoViewPicker;<br>方法or属性:select(option?: PhotoSelectOptions) : Promise\<PhotoSelectResult>;|@ohos.file.picker.d.ts|
185|新增|NA|类名:PhotoViewPicker;<br>方法or属性:select(option: PhotoSelectOptions, callback: AsyncCallback\<PhotoSelectResult>) : void;|@ohos.file.picker.d.ts|
186|新增|NA|类名:PhotoViewPicker;<br>方法or属性:select(callback: AsyncCallback\<PhotoSelectResult>) : void;|@ohos.file.picker.d.ts|
187|新增|NA|类名:PhotoViewPicker;<br>方法or属性:save(option?: PhotoSaveOptions) : Promise\<Array\<string>>;|@ohos.file.picker.d.ts|
188|新增|NA|类名:PhotoViewPicker;<br>方法or属性:save(option: PhotoSaveOptions, callback: AsyncCallback\<Array\<string>>) : void;|@ohos.file.picker.d.ts|
189|新增|NA|类名:PhotoViewPicker;<br>方法or属性:save(callback: AsyncCallback\<Array\<string>>) : void;|@ohos.file.picker.d.ts|
190|新增|NA|类名:DocumentViewPicker;<br>方法or属性:save(callback: AsyncCallback\<Array\<string>>) : void;|@ohos.file.picker.d.ts|
191|新增|NA|类名:AudioViewPicker;<br>方法or属性:save(callback: AsyncCallback\<Array\<string>>) : void;|@ohos.file.picker.d.ts|
192|新增|NA|类名:DocumentViewPicker;<br>方法or属性:select(option?: DocumentSelectOptions) : Promise\<Array\<string>>;|@ohos.file.picker.d.ts|
193|新增|NA|类名:DocumentViewPicker;<br>方法or属性:select(option: DocumentSelectOptions, callback: AsyncCallback\<Array\<string>>) : void;|@ohos.file.picker.d.ts|
194|新增|NA|类名:DocumentViewPicker;<br>方法or属性:select(callback: AsyncCallback\<Array\<string>>) : void;|@ohos.file.picker.d.ts|
195|新增|NA|类名:AudioViewPicker;<br>方法or属性:select(callback: AsyncCallback\<Array\<string>>) : void;|@ohos.file.picker.d.ts|
196|新增|NA|类名:DocumentViewPicker;<br>方法or属性:save(option?: DocumentSaveOptions) : Promise\<Array\<string>>;|@ohos.file.picker.d.ts|
197|新增|NA|类名:DocumentViewPicker;<br>方法or属性:save(option: DocumentSaveOptions, callback: AsyncCallback\<Array\<string>>) : void;|@ohos.file.picker.d.ts|
198|新增|NA|类名:AudioViewPicker;<br>方法or属性:select(option?: AudioSelectOptions) : Promise\<Array\<string>>;|@ohos.file.picker.d.ts|
199|新增|NA|类名:AudioViewPicker;<br>方法or属性:select(option: AudioSelectOptions, callback: AsyncCallback\<Array\<string>>) : void;|@ohos.file.picker.d.ts|
200|新增|NA|类名:AudioViewPicker;<br>方法or属性:save(option?: AudioSaveOptions) : Promise\<Array\<string>>;|@ohos.file.picker.d.ts|
201|新增|NA|类名:AudioViewPicker;<br>方法or属性:save(option: AudioSaveOptions, callback: AsyncCallback\<Array\<string>>) : void;|@ohos.file.picker.d.ts|
202|新增|NA|类名:securityLabel;<br>方法or属性:type DataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts|
203|新增|NA|类名:securityLabel;<br>方法or属性:function setSecurityLabel(path: string, type: DataLevel): Promise\<void>;|@ohos.file.securityLabel.d.ts|
204|新增|NA|类名:securityLabel;<br>方法or属性:function setSecurityLabel(path: string, type: DataLevel, callback: AsyncCallback\<void>): void;|@ohos.file.securityLabel.d.ts|
205|新增|NA|类名:securityLabel;<br>方法or属性:function setSecurityLabelSync(path: string, type: DataLevel): void;|@ohos.file.securityLabel.d.ts|
206|新增|NA|类名:securityLabel;<br>方法or属性:function getSecurityLabel(path: string): Promise\<string>;|@ohos.file.securityLabel.d.ts|
207|新增|NA|类名:securityLabel;<br>方法or属性:function getSecurityLabel(path: string, callback: AsyncCallback\<string>): void;|@ohos.file.securityLabel.d.ts|
208|新增|NA|类名:securityLabel;<br>方法or属性:function getSecurityLabelSync(path: string): string;|@ohos.file.securityLabel.d.ts|
209|新增|NA|类名:statfs;<br>方法or属性:function getFreeSize(path: string): Promise\<number>;|@ohos.file.statvfs.d.ts|
210|新增|NA|类名:statfs;<br>方法or属性:function getFreeSize(path: string, callback: AsyncCallback\<number>): void;|@ohos.file.statvfs.d.ts|
211|新增|NA|类名:statfs;<br>方法or属性:function getTotalSize(path: string): Promise\<number>;|@ohos.file.statvfs.d.ts|
212|新增|NA|类名:statfs;<br>方法or属性:function getTotalSize(path: string, callback: AsyncCallback\<number>): void;|@ohos.file.statvfs.d.ts|
213|新增|NA|类名:storageStatistics;<br>方法or属性:function getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback\<number>): void;|@ohos.file.storageStatistics.d.ts|
214|新增|NA|类名:storageStatistics;<br>方法or属性:function getTotalSizeOfVolume(volumeUuid: string): Promise\<number>;|@ohos.file.storageStatistics.d.ts|
215|新增|NA|类名:storageStatistics;<br>方法or属性:function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback\<number>): void;|@ohos.file.storageStatistics.d.ts|
216|新增|NA|类名:storageStatistics;<br>方法or属性:function getFreeSizeOfVolume(volumeUuid: string): Promise\<number>;|@ohos.file.storageStatistics.d.ts|
217|新增|NA|类名:storageStatistics;<br>方法or属性:function getBundleStats(packageName: string,  callback: AsyncCallback\<BundleStats>): void;|@ohos.file.storageStatistics.d.ts|
218|新增|NA|类名:storageStatistics;<br>方法or属性:function getBundleStats(packageName: string): Promise\<BundleStats>;|@ohos.file.storageStatistics.d.ts|
219|新增|NA|类名:storageStatistics;<br>方法or属性:function getCurrentBundleStats(callback: AsyncCallback\<BundleStats>): void;|@ohos.file.storageStatistics.d.ts|
220|新增|NA|类名:storageStatistics;<br>方法or属性:function getCurrentBundleStats(): Promise\<BundleStats>;|@ohos.file.storageStatistics.d.ts|
221|新增|NA|类名:storageStatistics;<br>方法or属性:function getSystemSize(callback: AsyncCallback\<number>): void;|@ohos.file.storageStatistics.d.ts|
222|新增|NA|类名:storageStatistics;<br>方法or属性:function getSystemSize(): Promise\<number>;|@ohos.file.storageStatistics.d.ts|
223|新增|NA|类名:storageStatistics;<br>方法or属性:function getUserStorageStats(): Promise\<StorageStats>;|@ohos.file.storageStatistics.d.ts|
224|新增|NA|类名:storageStatistics;<br>方法or属性:function getUserStorageStats(callback: AsyncCallback\<StorageStats>): void;|@ohos.file.storageStatistics.d.ts|
225|新增|NA|类名:storageStatistics;<br>方法or属性:function getUserStorageStats(userId: number): Promise\<StorageStats>;|@ohos.file.storageStatistics.d.ts|
226|新增|NA|类名:storageStatistics;<br>方法or属性:function getUserStorageStats(userId: number, callback: AsyncCallback\<StorageStats>): void;|@ohos.file.storageStatistics.d.ts|
227|新增|NA|类名:storageStatistics;<br>方法or属性:function getTotalSize(callback: AsyncCallback\<number>): void;|@ohos.file.storageStatistics.d.ts|
228|新增|NA|类名:storageStatistics;<br>方法or属性:function getTotalSize(): Promise\<number>;|@ohos.file.storageStatistics.d.ts|
229|新增|NA|类名:storageStatistics;<br>方法or属性:function getFreeSize(callback: AsyncCallback\<number>): void;|@ohos.file.storageStatistics.d.ts|
230|新增|NA|类名:storageStatistics;<br>方法or属性:function getFreeSize(): Promise\<number>;|@ohos.file.storageStatistics.d.ts|
231|新增|NA|类名:BundleStats;<br>方法or属性:appSize: number;|@ohos.file.storageStatistics.d.ts|
232|新增|NA|类名:BundleStats;<br>方法or属性:cacheSize: number;|@ohos.file.storageStatistics.d.ts|
233|新增|NA|类名:BundleStats;<br>方法or属性:dataSize: number;|@ohos.file.storageStatistics.d.ts|
234|新增|NA|类名:StorageStats;<br>方法or属性:total: number;|@ohos.file.storageStatistics.d.ts|
235|新增|NA|类名:StorageStats;<br>方法or属性:audio: number;|@ohos.file.storageStatistics.d.ts|
236|新增|NA|类名:StorageStats;<br>方法or属性:video: number;|@ohos.file.storageStatistics.d.ts|
237|新增|NA|类名:StorageStats;<br>方法or属性:image: number;|@ohos.file.storageStatistics.d.ts|
238|新增|NA|类名:StorageStats;<br>方法or属性:file: number;|@ohos.file.storageStatistics.d.ts|
239|新增|NA|类名:StorageStats;<br>方法or属性:app: number;|@ohos.file.storageStatistics.d.ts|
240|新增|NA|类名:volumeManager;<br>方法or属性:function getAllVolumes(callback: AsyncCallback\<Array\<Volume>>): void;|@ohos.file.volumeManager.d.ts|
241|新增|NA|类名:volumeManager;<br>方法or属性:function getAllVolumes(): Promise\<Array\<Volume>>;|@ohos.file.volumeManager.d.ts|
242|新增|NA|类名:volumeManager;<br>方法or属性:function mount(volumeId: string, callback: AsyncCallback\<void>): void;|@ohos.file.volumeManager.d.ts|
243|新增|NA|类名:volumeManager;<br>方法or属性:function mount(volumeId: string): Promise\<void>;|@ohos.file.volumeManager.d.ts|
244|新增|NA|类名:volumeManager;<br>方法or属性:function unmount(volumeId: string, callback: AsyncCallback\<void>): void;|@ohos.file.volumeManager.d.ts|
245|新增|NA|类名:volumeManager;<br>方法or属性:function unmount(volumeId: string): Promise\<void>;|@ohos.file.volumeManager.d.ts|
246|新增|NA|类名:volumeManager;<br>方法or属性:function getVolumeByUuid(uuid: string, callback: AsyncCallback\<Volume>): void;|@ohos.file.volumeManager.d.ts|
247|新增|NA|类名:volumeManager;<br>方法or属性:function getVolumeByUuid(uuid: string): Promise\<Volume>;|@ohos.file.volumeManager.d.ts|
248|新增|NA|类名:volumeManager;<br>方法or属性:function getVolumeById(volumeId: string, callback: AsyncCallback\<Volume>): void;|@ohos.file.volumeManager.d.ts|
249|新增|NA|类名:volumeManager;<br>方法or属性:function getVolumeById(volumeId: string): Promise\<Volume>;|@ohos.file.volumeManager.d.ts|
250|新增|NA|类名:volumeManager;<br>方法or属性:function setVolumeDescription(uuid: string, description: string, callback: AsyncCallback\<void>): void;|@ohos.file.volumeManager.d.ts|
251|新增|NA|类名:volumeManager;<br>方法or属性:function setVolumeDescription(uuid: string, description: string): Promise\<void>;|@ohos.file.volumeManager.d.ts|
252|新增|NA|类名:volumeManager;<br>方法or属性:function format(volumeId: string, fsType: string, callback: AsyncCallback\<void>): void;|@ohos.file.volumeManager.d.ts|
253|新增|NA|类名:volumeManager;<br>方法or属性:function format(volumeId: string, fsType: string): Promise\<void>;|@ohos.file.volumeManager.d.ts|
254|新增|NA|类名:volumeManager;<br>方法or属性:function partition(diskId: string, type: number, callback: AsyncCallback\<void>): void;|@ohos.file.volumeManager.d.ts|
255|新增|NA|类名:volumeManager;<br>方法or属性:function partition(diskId: string, type: number): Promise\<void>;|@ohos.file.volumeManager.d.ts|
256|新增|NA|类名:Volume;<br>方法or属性:id: string;|@ohos.file.volumeManager.d.ts|
257|新增|NA|类名:Volume;<br>方法or属性:uuid: string;|@ohos.file.volumeManager.d.ts|
258|新增|NA|类名:Volume;<br>方法or属性:diskId: string;|@ohos.file.volumeManager.d.ts|
259|新增|NA|类名:Volume;<br>方法or属性:description: string;|@ohos.file.volumeManager.d.ts|
260|新增|NA|类名:Volume;<br>方法or属性:removable: boolean;|@ohos.file.volumeManager.d.ts|
261|新增|NA|类名:Volume;<br>方法or属性:state: number;|@ohos.file.volumeManager.d.ts|
262|新增|NA|类名:Volume;<br>方法or属性:path: string;|@ohos.file.volumeManager.d.ts|
263|新增|NA|类名:sourcefile;<br>方法or属性:export type Filter = {<br>    /**<br>     * @type {Array\<string>}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    suffix: Array\<string>;<br>    /**<br>     * @type {Array\<string>}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    displayName?: Array\<string>;<br>    /**<br>     * @type {Array\<string>}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    mimeType?: Array\<string>;<br>    /**<br>     * @type {number}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    fileSizeOver?: number;<br>    /**<br>     * @type {number}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    lastModifiedAfter?: number;<br>    /**<br>     * @type {boolean}<br>     * @syscap SystemCapability.FileManagement.File.FileIO<br>     * @systemapi<br>     * @since 9<br>     * @readonly<br>     */<br>    excludeMedia?: boolean;<br>}|@ohos.fileio.d.ts|
264|新增|NA|类名:userFileManager;<br>方法or属性:function getUserFileMgr(context: Context): UserFileManager;|@ohos.filemanagement.userFileManager.d.ts|
265|新增|NA|类名:userFileManager;<br>方法or属性:type MemberType = number \| string \| boolean;|@ohos.filemanagement.userFileManager.d.ts|
266|新增|NA|类名:userFileManager;<br>方法or属性:type ChangeEvent = 'deviceChange' \| 'albumChange' \| 'imageChange' \| 'audioChange' \| 'videoChange' \| 'remoteFileChange';|@ohos.filemanagement.userFileManager.d.ts|
267|新增|NA|类名:FileType;<br>方法or属性:IMAGE = 1|@ohos.filemanagement.userFileManager.d.ts|
268|新增|NA|类名:FileType;<br>方法or属性:VIDEO|@ohos.filemanagement.userFileManager.d.ts|
269|新增|NA|类名:FileType;<br>方法or属性:AUDIO|@ohos.filemanagement.userFileManager.d.ts|
270|新增|NA|类名:FileAsset;<br>方法or属性:readonly uri: string;|@ohos.filemanagement.userFileManager.d.ts|
271|新增|NA|类名:FileAsset;<br>方法or属性:readonly fileType: FileType;|@ohos.filemanagement.userFileManager.d.ts|
272|新增|NA|类名:FileAsset;<br>方法or属性:displayName: string;|@ohos.filemanagement.userFileManager.d.ts|
273|新增|NA|类名:FileAsset;<br>方法or属性:get(member: string): MemberType;|@ohos.filemanagement.userFileManager.d.ts|
274|新增|NA|类名:FileAsset;<br>方法or属性:set(member: string, value: string): void;|@ohos.filemanagement.userFileManager.d.ts|
275|新增|NA|类名:FileAsset;<br>方法or属性:commitModify(callback: AsyncCallback\<void>): void;|@ohos.filemanagement.userFileManager.d.ts|
276|新增|NA|类名:Album;<br>方法or属性:commitModify(callback: AsyncCallback\<void>): void;|@ohos.filemanagement.userFileManager.d.ts|
277|新增|NA|类名:FileAsset;<br>方法or属性:commitModify(): Promise\<void>;|@ohos.filemanagement.userFileManager.d.ts|
278|新增|NA|类名:Album;<br>方法or属性:commitModify(): Promise\<void>;|@ohos.filemanagement.userFileManager.d.ts|
279|新增|NA|类名:FileAsset;<br>方法or属性:open(mode: string, callback: AsyncCallback\<number>): void;|@ohos.filemanagement.userFileManager.d.ts|
280|新增|NA|类名:FileAsset;<br>方法or属性:open(mode: string): Promise\<number>;|@ohos.filemanagement.userFileManager.d.ts|
281|新增|NA|类名:FileAsset;<br>方法or属性:close(fd: number, callback: AsyncCallback\<void>): void;|@ohos.filemanagement.userFileManager.d.ts|
282|新增|NA|类名:FileAsset;<br>方法or属性:close(fd: number): Promise\<void>;|@ohos.filemanagement.userFileManager.d.ts|
283|新增|NA|类名:FileAsset;<br>方法or属性:getThumbnail(callback: AsyncCallback\<image.PixelMap>): void;|@ohos.filemanagement.userFileManager.d.ts|
284|新增|NA|类名:FileAsset;<br>方法or属性:getThumbnail(size: image.Size, callback: AsyncCallback\<image.PixelMap>): void;|@ohos.filemanagement.userFileManager.d.ts|
285|新增|NA|类名:FileAsset;<br>方法or属性:getThumbnail(size?: image.Size): Promise\<image.PixelMap>;|@ohos.filemanagement.userFileManager.d.ts|
286|新增|NA|类名:FileAsset;<br>方法or属性:favorite(isFavorite: boolean, callback: AsyncCallback\<void>): void;|@ohos.filemanagement.userFileManager.d.ts|
287|新增|NA|类名:FileAsset;<br>方法or属性:favorite(isFavorite: boolean): Promise\<void>;|@ohos.filemanagement.userFileManager.d.ts|
288|新增|NA|类名:AudioKey;<br>方法or属性:URI|@ohos.filemanagement.userFileManager.d.ts|
289|新增|NA|类名:ImageVideoKey;<br>方法or属性:URI|@ohos.filemanagement.userFileManager.d.ts|
290|新增|NA|类名:AlbumKey;<br>方法or属性:URI|@ohos.filemanagement.userFileManager.d.ts|
291|新增|NA|类名:AudioKey;<br>方法or属性:DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts|
292|新增|NA|类名:ImageVideoKey;<br>方法or属性:DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts|
293|新增|NA|类名:AudioKey;<br>方法or属性:DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts|
294|新增|NA|类名:ImageVideoKey;<br>方法or属性:DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts|
295|新增|NA|类名:AlbumKey;<br>方法or属性:DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts|
296|新增|NA|类名:AudioKey;<br>方法or属性:DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts|
297|新增|NA|类名:ImageVideoKey;<br>方法or属性:DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts|
298|新增|NA|类名:AlbumKey;<br>方法or属性:DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts|
299|新增|NA|类名:AudioKey;<br>方法or属性:TITLE|@ohos.filemanagement.userFileManager.d.ts|
300|新增|NA|类名:ImageVideoKey;<br>方法or属性:TITLE|@ohos.filemanagement.userFileManager.d.ts|
301|新增|NA|类名:AudioKey;<br>方法or属性:ARTIST|@ohos.filemanagement.userFileManager.d.ts|
302|新增|NA|类名:AudioKey;<br>方法or属性:AUDIOALBUM|@ohos.filemanagement.userFileManager.d.ts|
303|新增|NA|类名:AudioKey;<br>方法or属性:DURATION|@ohos.filemanagement.userFileManager.d.ts|
304|新增|NA|类名:ImageVideoKey;<br>方法or属性:DURATION|@ohos.filemanagement.userFileManager.d.ts|
305|新增|NA|类名:AudioKey;<br>方法or属性:FAVORITE|@ohos.filemanagement.userFileManager.d.ts|
306|新增|NA|类名:ImageVideoKey;<br>方法or属性:FAVORITE|@ohos.filemanagement.userFileManager.d.ts|
307|新增|NA|类名:ImageVideoKey;<br>方法or属性:FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts|
308|新增|NA|类名:AlbumKey;<br>方法or属性:FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts|
309|新增|NA|类名:ImageVideoKey;<br>方法or属性:WIDTH|@ohos.filemanagement.userFileManager.d.ts|
310|新增|NA|类名:ImageVideoKey;<br>方法or属性:HEIGHT|@ohos.filemanagement.userFileManager.d.ts|
311|新增|NA|类名:ImageVideoKey;<br>方法or属性:DATE_TAKEN|@ohos.filemanagement.userFileManager.d.ts|
312|新增|NA|类名:ImageVideoKey;<br>方法or属性:ORIENTATION|@ohos.filemanagement.userFileManager.d.ts|
313|新增|NA|类名:AlbumKey;<br>方法or属性:ALBUM_NAME|@ohos.filemanagement.userFileManager.d.ts|
314|新增|NA|类名:FetchOptions;<br>方法or属性:fetchColumns: Array\<string>;|@ohos.filemanagement.userFileManager.d.ts|
315|新增|NA|类名:FetchOptions;<br>方法or属性:predicates: dataSharePredicates.DataSharePredicates;|@ohos.filemanagement.userFileManager.d.ts|
316|新增|NA|类名:AlbumFetchOptions;<br>方法or属性:predicates: dataSharePredicates.DataSharePredicates;|@ohos.filemanagement.userFileManager.d.ts|
317|新增|NA|类名:FetchResult;<br>方法or属性:getCount(): number;|@ohos.filemanagement.userFileManager.d.ts|
318|新增|NA|类名:FetchResult;<br>方法or属性:isAfterLast(): boolean;|@ohos.filemanagement.userFileManager.d.ts|
319|新增|NA|类名:FetchResult;<br>方法or属性:close(): void;|@ohos.filemanagement.userFileManager.d.ts|
320|新增|NA|类名:FetchResult;<br>方法or属性:getFirstObject(callback: AsyncCallback\<T>): void;|@ohos.filemanagement.userFileManager.d.ts|
321|新增|NA|类名:FetchResult;<br>方法or属性:getFirstObject(): Promise\<T>;|@ohos.filemanagement.userFileManager.d.ts|
322|新增|NA|类名:FetchResult;<br>方法or属性:getNextObject(callback: AsyncCallback\<T>): void;|@ohos.filemanagement.userFileManager.d.ts|
323|新增|NA|类名:FetchResult;<br>方法or属性:getNextObject(): Promise\<T>;|@ohos.filemanagement.userFileManager.d.ts|
324|新增|NA|类名:FetchResult;<br>方法or属性:getLastObject(callback: AsyncCallback\<T>): void;|@ohos.filemanagement.userFileManager.d.ts|
325|新增|NA|类名:FetchResult;<br>方法or属性:getLastObject(): Promise\<T>;|@ohos.filemanagement.userFileManager.d.ts|
326|新增|NA|类名:FetchResult;<br>方法or属性:getPositionObject(index: number, callback: AsyncCallback\<T>): void;|@ohos.filemanagement.userFileManager.d.ts|
327|新增|NA|类名:FetchResult;<br>方法or属性:getPositionObject(index: number): Promise\<T>;|@ohos.filemanagement.userFileManager.d.ts|
328|新增|NA|类名:AbsAlbum;<br>方法or属性:albumName: string;|@ohos.filemanagement.userFileManager.d.ts|
329|新增|NA|类名:AbsAlbum;<br>方法or属性:readonly albumUri: string;|@ohos.filemanagement.userFileManager.d.ts|
330|新增|NA|类名:AbsAlbum;<br>方法or属性:readonly dateModified: number;|@ohos.filemanagement.userFileManager.d.ts|
331|新增|NA|类名:AbsAlbum;<br>方法or属性:readonly count: number;|@ohos.filemanagement.userFileManager.d.ts|
332|新增|NA|类名:AbsAlbum;<br>方法or属性:readonly coverUri: string;|@ohos.filemanagement.userFileManager.d.ts|
333|新增|NA|类名:AbsAlbum;<br>方法or属性:getPhotoAssets(options: FetchOptions, callback: AsyncCallback\<FetchResult\<FileAsset>>): void;|@ohos.filemanagement.userFileManager.d.ts|
334|新增|NA|类名:UserFileManager;<br>方法or属性:getPhotoAssets(options: FetchOptions, callback: AsyncCallback\<FetchResult\<FileAsset>>): void;|@ohos.filemanagement.userFileManager.d.ts|
335|新增|NA|类名:AbsAlbum;<br>方法or属性:getPhotoAssets(options: FetchOptions): Promise\<FetchResult\<FileAsset>>;|@ohos.filemanagement.userFileManager.d.ts|
336|新增|NA|类名:UserFileManager;<br>方法or属性:getPhotoAssets(options: FetchOptions): Promise\<FetchResult\<FileAsset>>;|@ohos.filemanagement.userFileManager.d.ts|
337|新增|NA|类名:UserFileManager;<br>方法or属性:createPhotoAsset(displayName: string, albumUri: string, callback: AsyncCallback\<FileAsset>): void;|@ohos.filemanagement.userFileManager.d.ts|
338|新增|NA|类名:UserFileManager;<br>方法or属性:createPhotoAsset(displayName: string, callback: AsyncCallback\<FileAsset>): void;|@ohos.filemanagement.userFileManager.d.ts|
339|新增|NA|类名:UserFileManager;<br>方法or属性:createPhotoAsset(displayName: string, albumUri?: string): Promise\<FileAsset>;|@ohos.filemanagement.userFileManager.d.ts|
340|新增|NA|类名:UserFileManager;<br>方法or属性:getPhotoAlbums(options: AlbumFetchOptions, callback: AsyncCallback\<FetchResult\<Album>>): void;|@ohos.filemanagement.userFileManager.d.ts|
341|新增|NA|类名:UserFileManager;<br>方法or属性:getPhotoAlbums(options: AlbumFetchOptions): Promise\<FetchResult\<Album>>;|@ohos.filemanagement.userFileManager.d.ts|
342|新增|NA|类名:UserFileManager;<br>方法or属性:getPrivateAlbum(type: PrivateAlbumType, callback: AsyncCallback\<FetchResult\<PrivateAlbum>>): void;|@ohos.filemanagement.userFileManager.d.ts|
343|新增|NA|类名:UserFileManager;<br>方法or属性:getPrivateAlbum(type: PrivateAlbumType): Promise\<FetchResult\<PrivateAlbum>>;|@ohos.filemanagement.userFileManager.d.ts|
344|新增|NA|类名:UserFileManager;<br>方法or属性:getAudioAssets(options: FetchOptions, callback: AsyncCallback\<FetchResult\<FileAsset>>): void;|@ohos.filemanagement.userFileManager.d.ts|
345|新增|NA|类名:UserFileManager;<br>方法or属性:getAudioAssets(options: FetchOptions): Promise\<FetchResult\<FileAsset>>;|@ohos.filemanagement.userFileManager.d.ts|
346|新增|NA|类名:UserFileManager;<br>方法or属性:delete(uri: string, callback: AsyncCallback\<void>): void;|@ohos.filemanagement.userFileManager.d.ts|
347|新增|NA|类名:PrivateAlbum;<br>方法or属性:delete(uri: string, callback: AsyncCallback\<void>): void;|@ohos.filemanagement.userFileManager.d.ts|
348|新增|NA|类名:UserFileManager;<br>方法or属性:delete(uri: string): Promise\<void>;|@ohos.filemanagement.userFileManager.d.ts|
349|新增|NA|类名:PrivateAlbum;<br>方法or属性:delete(uri: string): Promise\<void>;|@ohos.filemanagement.userFileManager.d.ts|
350|新增|NA|类名:UserFileManager;<br>方法or属性:on(type: ChangeEvent, callback: Callback\<void>): void;|@ohos.filemanagement.userFileManager.d.ts|
351|新增|NA|类名:UserFileManager;<br>方法or属性:off(type: ChangeEvent, callback?: Callback\<void>): void;|@ohos.filemanagement.userFileManager.d.ts|
352|新增|NA|类名:UserFileManager;<br>方法or属性:getActivePeers(callback: AsyncCallback\<Array\<PeerInfo>>): void;|@ohos.filemanagement.userFileManager.d.ts|
353|新增|NA|类名:UserFileManager;<br>方法or属性:getActivePeers(): Promise\<Array\<PeerInfo>>;|@ohos.filemanagement.userFileManager.d.ts|
354|新增|NA|类名:UserFileManager;<br>方法or属性:getAllPeers(callback: AsyncCallback\<Array\<PeerInfo>>): void;|@ohos.filemanagement.userFileManager.d.ts|
355|新增|NA|类名:UserFileManager;<br>方法or属性:getAllPeers(): Promise\<Array\<PeerInfo>>;|@ohos.filemanagement.userFileManager.d.ts|
356|新增|NA|类名:UserFileManager;<br>方法or属性:release(callback: AsyncCallback\<void>): void;|@ohos.filemanagement.userFileManager.d.ts|
357|新增|NA|类名:UserFileManager;<br>方法or属性:release(): Promise\<void>;|@ohos.filemanagement.userFileManager.d.ts|
358|新增|NA|类名:PeerInfo;<br>方法or属性:readonly deviceName: string;|@ohos.filemanagement.userFileManager.d.ts|
359|新增|NA|类名:PeerInfo;<br>方法or属性:readonly networkId: string;|@ohos.filemanagement.userFileManager.d.ts|
360|新增|NA|类名:PeerInfo;<br>方法or属性:readonly isOnline: boolean;|@ohos.filemanagement.userFileManager.d.ts|
361|新增|NA|类名:PrivateAlbumType;<br>方法or属性:TYPE_FAVORITE|@ohos.filemanagement.userFileManager.d.ts|
362|新增|NA|类名:PrivateAlbumType;<br>方法or属性:TYPE_TRASH|@ohos.filemanagement.userFileManager.d.ts|
363|新增|NA|类名:PrivateAlbum;<br>方法or属性:recover(uri: string, callback: AsyncCallback\<void>): void;|@ohos.filemanagement.userFileManager.d.ts|
364|新增|NA|类名:PrivateAlbum;<br>方法or属性:recover(uri: string): Promise\<void>;|@ohos.filemanagement.userFileManager.d.ts|
365|新增|NA|类名:fileShare;<br>方法or属性:function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags, callback: AsyncCallback\<void>): void;|@ohos.fileshare.d.ts|
366|新增|NA|类名:fileShare;<br>方法or属性:function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags): Promise\<void>;|@ohos.fileshare.d.ts|
367|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function choose(types?: string[]): Promise\<string>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function choose(types?: string[]): Promise\<string>;<br>新版本信息:9<br>代替接口:|@ohos.document.d.ts|
368|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function choose(callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function choose(callback: AsyncCallback\<string>): void;<br>新版本信息:9<br>代替接口:|@ohos.document.d.ts|
369|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function choose(types: string[], callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function choose(types: string[], callback: AsyncCallback\<string>): void;<br>新版本信息:9<br>代替接口:|@ohos.document.d.ts|
370|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function show(uri: string, type: string): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function show(uri: string, type: string): Promise\<void>;<br>新版本信息:9<br>代替接口:|@ohos.document.d.ts|
371|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function show(uri: string, type: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function show(uri: string, type: string, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口:|@ohos.document.d.ts|
372|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function access(path: string, mode?: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function access(path: string, mode?: number): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.access|@ohos.fileio.d.ts|
373|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function access(path: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function access(path: string, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.access|@ohos.fileio.d.ts|
374|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function access(path: string, mode: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function access(path: string, mode: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.access|@ohos.fileio.d.ts|
375|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function accessSync(path: string, mode?: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function accessSync(path: string, mode?: number): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.accessSync|@ohos.fileio.d.ts|
376|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function close(fd: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function close(fd: number): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.close|@ohos.fileio.d.ts|
377|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function close(fd: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function close(fd: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.close|@ohos.fileio.d.ts|
378|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function closeSync(fd: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function closeSync(fd: number): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.closeSync|@ohos.fileio.d.ts|
379|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.copyFile|@ohos.fileio.d.ts|
380|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.copyFile|@ohos.fileio.d.ts|
381|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.copyFile|@ohos.fileio.d.ts|
382|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function copyFileSync(src: string \| number, dest: string \| number, mode?: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function copyFileSync(src: string \| number, dest: string \| number, mode?: number): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.copyFileSync|@ohos.fileio.d.ts|
383|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function createStream(path: string, mode: string): Promise\<Stream>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function createStream(path: string, mode: string): Promise\<Stream>;<br>新版本信息:9<br>代替接口: ohos.file.fs.createStream|@ohos.fileio.d.ts|
384|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback\<Stream>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback\<Stream>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.createStream|@ohos.fileio.d.ts|
385|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function createStreamSync(path: string, mode: string): Stream;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function createStreamSync(path: string, mode: string): Stream;<br>新版本信息:9<br>代替接口: ohos.file.fs.createStreamSync|@ohos.fileio.d.ts|
386|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function chown(path: string, uid: number, gid: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function chown(path: string, uid: number, gid: number): Promise\<void>;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
387|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function chown(path: string, uid: number, gid: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function chown(path: string, uid: number, gid: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
388|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function chownSync(path: string, uid: number, gid: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function chownSync(path: string, uid: number, gid: number): void;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
389|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function chmod(path: string, mode: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function chmod(path: string, mode: number): Promise\<void>;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
390|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function chmod(path: string, mode: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function chmod(path: string, mode: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
391|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function chmodSync(path: string, mode: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function chmodSync(path: string, mode: number): void;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
392|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function ftruncate(fd: number, len?: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function ftruncate(fd: number, len?: number): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.truncate|@ohos.fileio.d.ts|
393|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function ftruncate(fd: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function ftruncate(fd: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.truncate|@ohos.fileio.d.ts|
394|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function ftruncate(fd: number, len: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function ftruncate(fd: number, len: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.truncate|@ohos.fileio.d.ts|
395|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function ftruncateSync(fd: number, len?: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function ftruncateSync(fd: number, len?: number): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.truncateSync|@ohos.fileio.d.ts|
396|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fsync(fd: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fsync(fd: number): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.fsync|@ohos.fileio.d.ts|
397|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fsync(fd: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fsync(fd: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.fsync|@ohos.fileio.d.ts|
398|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fsyncSync(fd: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fsyncSync(fd: number): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.fsyncSync|@ohos.fileio.d.ts|
399|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fstat(fd: number): Promise\<Stat>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fstat(fd: number): Promise\<Stat>;<br>新版本信息:9<br>代替接口: ohos.file.fs.stat|@ohos.fileio.d.ts|
400|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fstat(fd: number, callback: AsyncCallback\<Stat>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fstat(fd: number, callback: AsyncCallback\<Stat>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.stat|@ohos.fileio.d.ts|
401|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fstatSync(fd: number): Stat;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fstatSync(fd: number): Stat;<br>新版本信息:9<br>代替接口: ohos.file.fs.statSync|@ohos.fileio.d.ts|
402|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fdatasync(fd: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fdatasync(fd: number): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.fdatasync|@ohos.fileio.d.ts|
403|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.fdatasync|@ohos.fileio.d.ts|
404|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fdatasyncSync(fd: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fdatasyncSync(fd: number): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.fdatasyncSync|@ohos.fileio.d.ts|
405|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fchown(fd: number, uid: number, gid: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fchown(fd: number, uid: number, gid: number): Promise\<void>;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
406|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
407|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fchownSync(fd: number, uid: number, gid: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fchownSync(fd: number, uid: number, gid: number): void;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
408|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fchmod(fd: number, mode: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fchmod(fd: number, mode: number): Promise\<void>;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
409|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fchmod(fd: number, mode: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fchmod(fd: number, mode: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
410|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fchmodSync(fd: number, mode: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fchmodSync(fd: number, mode: number): void;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
411|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fdopenStream(fd: number, mode: string): Promise\<Stream>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fdopenStream(fd: number, mode: string): Promise\<Stream>;<br>新版本信息:9<br>代替接口: ohos.file.fs.fdopenStream|@ohos.fileio.d.ts|
412|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback\<Stream>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback\<Stream>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.fdopenStream|@ohos.fileio.d.ts|
413|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function fdopenStreamSync(fd: number, mode: string): Stream;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function fdopenStreamSync(fd: number, mode: string): Stream;<br>新版本信息:9<br>代替接口: ohos.file.fs.fdopenStreamSync|@ohos.fileio.d.ts|
414|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function hash(path: string, algorithm: string): Promise\<string>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function hash(path: string, algorithm: string): Promise\<string>;<br>新版本信息:9<br>代替接口: ohos.file.hash.hash|@ohos.fileio.d.ts|
415|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function hash(path: string, algorithm: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function hash(path: string, algorithm: string, callback: AsyncCallback\<string>): void;<br>新版本信息:9<br>代替接口: ohos.file.hash.hash|@ohos.fileio.d.ts|
416|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function lchown(path: string, uid: number, gid: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function lchown(path: string, uid: number, gid: number): Promise\<void>;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
417|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function lchown(path: string, uid: number, gid: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function lchown(path: string, uid: number, gid: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
418|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function lchownSync(path: string, uid: number, gid: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function lchownSync(path: string, uid: number, gid: number): void;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
419|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function lstat(path: string): Promise\<Stat>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function lstat(path: string): Promise\<Stat>;<br>新版本信息:9<br>代替接口: ohos.file.fs.lstat|@ohos.fileio.d.ts|
420|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function lstat(path: string, callback: AsyncCallback\<Stat>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function lstat(path: string, callback: AsyncCallback\<Stat>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.lstat|@ohos.fileio.d.ts|
421|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function lstatSync(path: string): Stat;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function lstatSync(path: string): Stat;<br>新版本信息:9<br>代替接口: ohos.file.fs.lstatSync|@ohos.fileio.d.ts|
422|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function mkdir(path: string, mode?: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function mkdir(path: string, mode?: number): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.mkdir|@ohos.fileio.d.ts|
423|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function mkdir(path: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function mkdir(path: string, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.mkdir|@ohos.fileio.d.ts|
424|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function mkdir(path: string, mode: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function mkdir(path: string, mode: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.mkdir|@ohos.fileio.d.ts|
425|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function mkdirSync(path: string, mode?: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function mkdirSync(path: string, mode?: number): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.mkdirSync|@ohos.fileio.d.ts|
426|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function mkdtemp(prefix: string): Promise\<string>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function mkdtemp(prefix: string): Promise\<string>;<br>新版本信息:9<br>代替接口: ohos.file.fs.mkdtemp|@ohos.fileio.d.ts|
427|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback\<string>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.mkdtemp|@ohos.fileio.d.ts|
428|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function mkdtempSync(prefix: string): string;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function mkdtempSync(prefix: string): string;<br>新版本信息:9<br>代替接口: ohos.file.fs.mkdtempSync|@ohos.fileio.d.ts|
429|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function open(path: string, flags?: number, mode?: number): Promise\<number>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function open(path: string, flags?: number, mode?: number): Promise\<number>;<br>新版本信息:9<br>代替接口: ohos.file.fs.open|@ohos.fileio.d.ts|
430|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function open(path: string, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function open(path: string, callback: AsyncCallback\<number>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.open|@ohos.fileio.d.ts|
431|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function open(path: string, flags: number, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function open(path: string, flags: number, callback: AsyncCallback\<number>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.open|@ohos.fileio.d.ts|
432|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function open(path: string, flags: number, mode: number, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function open(path: string, flags: number, mode: number, callback: AsyncCallback\<number>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.open|@ohos.fileio.d.ts|
433|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function openSync(path: string, flags?: number, mode?: number): number;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function openSync(path: string, flags?: number, mode?: number): number;<br>新版本信息:9<br>代替接口: ohos.file.fs.openSync|@ohos.fileio.d.ts|
434|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function opendir(path: string): Promise\<Dir>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function opendir(path: string): Promise\<Dir>;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
435|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function opendir(path: string, callback: AsyncCallback\<Dir>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function opendir(path: string, callback: AsyncCallback\<Dir>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
436|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function opendirSync(path: string): Dir;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function opendirSync(path: string): Dir;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
437|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function readText(filePath: string, options?: {<br>    position?: number;<br>    length?: number;<br>    encoding?: string;<br>}): Promise\<string>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare 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|
438|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function readText(filePath: string, options: {<br>    position?: number;<br>    length?: number;<br>    encoding?: string;<br>}, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function readText(filePath: string, options: {<br>    position?: number;<br>    length?: number;<br>    encoding?: string;<br>}, callback: AsyncCallback\<string>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.readText|@ohos.fileio.d.ts|
439|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function readTextSync(filePath: string, options?: {<br>    position?: number;<br>    length?: number;<br>    encoding?: string;<br>}): string;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare 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|
440|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options?: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>}): Promise\<ReadOut><br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options?: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>}): Promise\<ReadOut><br>新版本信息:9<br>代替接口: ohos.file.fs.read|@ohos.fileio.d.ts|
441|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback\<ReadOut>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback\<ReadOut>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.read|@ohos.fileio.d.ts|
442|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>}, callback: AsyncCallback\<ReadOut>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>}, callback: AsyncCallback\<ReadOut>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.read|@ohos.fileio.d.ts|
443|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function readSync(fd: number, buffer: ArrayBuffer, options?: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>}): number;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function readSync(fd: number, buffer: ArrayBuffer, options?: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>}): number;<br>新版本信息:9<br>代替接口: ohos.file.fs.readSync|@ohos.fileio.d.ts|
444|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function rename(oldPath: string, newPath: string): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function rename(oldPath: string, newPath: string): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.rename|@ohos.fileio.d.ts|
445|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.rename|@ohos.fileio.d.ts|
446|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function renameSync(oldPath: string, newPath: string): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function renameSync(oldPath: string, newPath: string): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.renameSync|@ohos.fileio.d.ts|
447|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function rmdir(path: string): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function rmdir(path: string): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.rmdir|@ohos.fileio.d.ts|
448|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function rmdir(path: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function rmdir(path: string, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.rmdir|@ohos.fileio.d.ts|
449|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function rmdirSync(path: string): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function rmdirSync(path: string): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.rmdirSync|@ohos.fileio.d.ts|
450|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function stat(path: string): Promise\<Stat>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function stat(path: string): Promise\<Stat>;<br>新版本信息:9<br>代替接口: ohos.file.fs.stat|@ohos.fileio.d.ts|
451|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function stat(path: string, callback: AsyncCallback\<Stat>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function stat(path: string, callback: AsyncCallback\<Stat>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.stat|@ohos.fileio.d.ts|
452|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function statSync(path: string): Stat;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function statSync(path: string): Stat;<br>新版本信息:9<br>代替接口: ohos.file.fs.statSync|@ohos.fileio.d.ts|
453|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function symlink(target: string, srcPath: string): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function symlink(target: string, srcPath: string): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.symlink|@ohos.fileio.d.ts|
454|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.symlink|@ohos.fileio.d.ts|
455|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function symlinkSync(target: string, srcPath: string): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function symlinkSync(target: string, srcPath: string): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.symlinkSync|@ohos.fileio.d.ts|
456|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function truncate(path: string, len?: number): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function truncate(path: string, len?: number): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.truncate|@ohos.fileio.d.ts|
457|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function truncate(path: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function truncate(path: string, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.truncate|@ohos.fileio.d.ts|
458|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function truncate(path: string, len: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function truncate(path: string, len: number, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.truncate|@ohos.fileio.d.ts|
459|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function truncateSync(path: string, len?: number): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function truncateSync(path: string, len?: number): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.truncateSync|@ohos.fileio.d.ts|
460|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function unlink(path: string): Promise\<void>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function unlink(path: string): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.unlink|@ohos.fileio.d.ts|
461|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function unlink(path: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function unlink(path: string, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.unlink|@ohos.fileio.d.ts|
462|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function unlinkSync(path: string): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function unlinkSync(path: string): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.unlinkSync|@ohos.fileio.d.ts|
463|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function write(fd: number, buffer: ArrayBuffer \| string, options?: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>    encoding?: string;<br>}): Promise\<number>;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function write(fd: number, buffer: ArrayBuffer \| string, options?: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>    encoding?: string;<br>}): Promise\<number>;<br>新版本信息:9<br>代替接口: ohos.file.fs.write|@ohos.fileio.d.ts|
464|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function write(fd: number, buffer: ArrayBuffer \| string, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function write(fd: number, buffer: ArrayBuffer \| string, callback: AsyncCallback\<number>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.write|@ohos.fileio.d.ts|
465|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function write(fd: number, buffer: ArrayBuffer \| string, options: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>    encoding?: string;<br>}, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function write(fd: number, buffer: ArrayBuffer \| string, options: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>    encoding?: string;<br>}, callback: AsyncCallback\<number>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.write|@ohos.fileio.d.ts|
466|废弃版本有变化|类名:sourcefile;<br>方法or属性:declare function writeSync(fd: number, buffer: ArrayBuffer \| string, options?: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>    encoding?: string;<br>}): number;<br>旧版本信息:|类名:sourcefile;<br>方法or属性:declare function writeSync(fd: number, buffer: ArrayBuffer \| string, options?: {<br>    offset?: number;<br>    length?: number;<br>    position?: number;<br>    encoding?: string;<br>}): number;<br>新版本信息:9<br>代替接口: ohos.file.fs.writeSync|@ohos.fileio.d.ts|
467|废弃版本有变化|类名:Dir;<br>方法or属性:read(): Promise\<Dirent>;<br>旧版本信息:|类名:Dir;<br>方法or属性:read(): Promise\<Dirent>;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
468|废弃版本有变化|类名:Dir;<br>方法or属性:readSync(): Dirent;<br>旧版本信息:|类名:Dir;<br>方法or属性:readSync(): Dirent;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
469|废弃版本有变化|类名:Dir;<br>方法or属性:close(): Promise\<void>;<br>旧版本信息:|类名:Dir;<br>方法or属性:close(): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
470|废弃版本有变化|类名:Stream;<br>方法or属性:close(): Promise\<void>;<br>旧版本信息:|类名:Stream;<br>方法or属性:close(): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
471|废弃版本有变化|类名:Dir;<br>方法or属性:closeSync(): void;<br>旧版本信息:|类名:Dir;<br>方法or属性:closeSync(): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
472|废弃版本有变化|类名:Stream;<br>方法or属性:closeSync(): void;<br>旧版本信息:|类名:Stream;<br>方法or属性:closeSync(): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
473|废弃版本有变化|类名:Dirent;<br>方法or属性:declare interface Dirent<br>旧版本信息:|类名:Dirent;<br>方法or属性:declare interface Dirent<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
474|废弃版本有变化|类名:Dirent;<br>方法or属性:readonly name: string;<br>旧版本信息:|类名:Dirent;<br>方法or属性:readonly name: string;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
475|废弃版本有变化|类名:Dirent;<br>方法or属性:isBlockDevice(): boolean;<br>旧版本信息:|类名:Dirent;<br>方法or属性:isBlockDevice(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
476|废弃版本有变化|类名:Stat;<br>方法or属性:isBlockDevice(): boolean;<br>旧版本信息:|类名:Stat;<br>方法or属性:isBlockDevice(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
477|废弃版本有变化|类名:Dirent;<br>方法or属性:isCharacterDevice(): boolean;<br>旧版本信息:|类名:Dirent;<br>方法or属性:isCharacterDevice(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
478|废弃版本有变化|类名:Stat;<br>方法or属性:isCharacterDevice(): boolean;<br>旧版本信息:|类名:Stat;<br>方法or属性:isCharacterDevice(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
479|废弃版本有变化|类名:Dirent;<br>方法or属性:isDirectory(): boolean;<br>旧版本信息:|类名:Dirent;<br>方法or属性:isDirectory(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
480|废弃版本有变化|类名:Stat;<br>方法or属性:isDirectory(): boolean;<br>旧版本信息:|类名:Stat;<br>方法or属性:isDirectory(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
481|废弃版本有变化|类名:Dirent;<br>方法or属性:isFIFO(): boolean;<br>旧版本信息:|类名:Dirent;<br>方法or属性:isFIFO(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
482|废弃版本有变化|类名:Stat;<br>方法or属性:isFIFO(): boolean;<br>旧版本信息:|类名:Stat;<br>方法or属性:isFIFO(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
483|废弃版本有变化|类名:Dirent;<br>方法or属性:isFile(): boolean;<br>旧版本信息:|类名:Dirent;<br>方法or属性:isFile(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
484|废弃版本有变化|类名:Stat;<br>方法or属性:isFile(): boolean;<br>旧版本信息:|类名:Stat;<br>方法or属性:isFile(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
485|废弃版本有变化|类名:Dirent;<br>方法or属性:isSocket(): boolean;<br>旧版本信息:|类名:Dirent;<br>方法or属性:isSocket(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
486|废弃版本有变化|类名:Stat;<br>方法or属性:isSocket(): boolean;<br>旧版本信息:|类名:Stat;<br>方法or属性:isSocket(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
487|废弃版本有变化|类名:Dirent;<br>方法or属性:isSymbolicLink(): boolean;<br>旧版本信息:|类名:Dirent;<br>方法or属性:isSymbolicLink(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.listFile|@ohos.fileio.d.ts|
488|废弃版本有变化|类名:Stat;<br>方法or属性:isSymbolicLink(): boolean;<br>旧版本信息:|类名:Stat;<br>方法or属性:isSymbolicLink(): boolean;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
489|废弃版本有变化|类名:Stat;<br>方法or属性:declare interface Stat<br>旧版本信息:|类名:Stat;<br>方法or属性:declare interface Stat<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
490|废弃版本有变化|类名:Stat;<br>方法or属性:readonly dev: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly dev: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
491|废弃版本有变化|类名:Stat;<br>方法or属性:readonly ino: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly ino: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
492|废弃版本有变化|类名:Stat;<br>方法or属性:readonly mode: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly mode: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
493|废弃版本有变化|类名:Stat;<br>方法or属性:readonly nlink: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly nlink: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
494|废弃版本有变化|类名:Stat;<br>方法or属性:readonly uid: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly uid: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
495|废弃版本有变化|类名:Stat;<br>方法or属性:readonly gid: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly gid: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
496|废弃版本有变化|类名:Stat;<br>方法or属性:readonly rdev: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly rdev: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
497|废弃版本有变化|类名:Stat;<br>方法or属性:readonly size: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly size: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
498|废弃版本有变化|类名:Stat;<br>方法or属性:readonly blocks: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly blocks: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
499|废弃版本有变化|类名:Stat;<br>方法or属性:readonly atime: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly atime: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
500|废弃版本有变化|类名:Stat;<br>方法or属性:readonly mtime: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly mtime: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
501|废弃版本有变化|类名:Stat;<br>方法or属性:readonly ctime: number;<br>旧版本信息:|类名:Stat;<br>方法or属性:readonly ctime: number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stat|@ohos.fileio.d.ts|
502|废弃版本有变化|类名:Stream;<br>方法or属性:declare interface Stream<br>旧版本信息:|类名:Stream;<br>方法or属性:declare interface Stream<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
503|废弃版本有变化|类名:Stream;<br>方法or属性:close(callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:Stream;<br>方法or属性:close(callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
504|废弃版本有变化|类名:Stream;<br>方法or属性:flush(): Promise\<void>;<br>旧版本信息:|类名:Stream;<br>方法or属性:flush(): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
505|废弃版本有变化|类名:Stream;<br>方法or属性:flush(callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:Stream;<br>方法or属性:flush(callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
506|废弃版本有变化|类名:Stream;<br>方法or属性:flushSync(): void;<br>旧版本信息:|类名:Stream;<br>方法or属性:flushSync(): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
507|废弃版本有变化|类名:Stream;<br>方法or属性:write(buffer: ArrayBuffer \| string, options?: {<br>        offset?: number;<br>        length?: number;<br>        position?: number;<br>        encoding?: string;<br>    }): Promise\<number>;<br>旧版本信息:|类名:Stream;<br>方法or属性:write(buffer: ArrayBuffer \| string, options?: {<br>        offset?: number;<br>        length?: number;<br>        position?: number;<br>        encoding?: string;<br>    }): Promise\<number>;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
508|废弃版本有变化|类名:Stream;<br>方法or属性:write(buffer: ArrayBuffer \| string, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:Stream;<br>方法or属性:write(buffer: ArrayBuffer \| string, callback: AsyncCallback\<number>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
509|废弃版本有变化|类名:Stream;<br>方法or属性:write(buffer: ArrayBuffer \| string, options: {<br>        offset?: number;<br>        length?: number;<br>        position?: number;<br>        encoding?: string;<br>    }, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:Stream;<br>方法or属性:write(buffer: ArrayBuffer \| string, options: {<br>        offset?: number;<br>        length?: number;<br>        position?: number;<br>        encoding?: string;<br>    }, callback: AsyncCallback\<number>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
510|废弃版本有变化|类名:Stream;<br>方法or属性:writeSync(buffer: ArrayBuffer \| string, options?: {<br>        offset?: number;<br>        length?: number;<br>        position?: number;<br>        encoding?: string;<br>    }): number;<br>旧版本信息:|类名:Stream;<br>方法or属性:writeSync(buffer: ArrayBuffer \| string, options?: {<br>        offset?: number;<br>        length?: number;<br>        position?: number;<br>        encoding?: string;<br>    }): number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
511|废弃版本有变化|类名:Stream;<br>方法or属性:read(buffer: ArrayBuffer, options?: {<br>        position?: number;<br>        offset?: number;<br>        length?: number;<br>    }): Promise\<ReadOut>;<br>旧版本信息:|类名:Stream;<br>方法or属性:read(buffer: ArrayBuffer, options?: {<br>        position?: number;<br>        offset?: number;<br>        length?: number;<br>    }): Promise\<ReadOut>;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
512|废弃版本有变化|类名:Stream;<br>方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback\<ReadOut>): void;<br>旧版本信息:|类名:Stream;<br>方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback\<ReadOut>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
513|废弃版本有变化|类名:Stream;<br>方法or属性:read(buffer: ArrayBuffer, options: {<br>        position?: number;<br>        offset?: number;<br>        length?: number;<br>    }, callback: AsyncCallback\<ReadOut>): void;<br>旧版本信息:|类名:Stream;<br>方法or属性:read(buffer: ArrayBuffer, options: {<br>        position?: number;<br>        offset?: number;<br>        length?: number;<br>    }, callback: AsyncCallback\<ReadOut>): void;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
514|废弃版本有变化|类名:Stream;<br>方法or属性:readSync(buffer: ArrayBuffer, options?: {<br>        position?: number;<br>        offset?: number;<br>        length?: number;<br>    }): number;<br>旧版本信息:|类名:Stream;<br>方法or属性:readSync(buffer: ArrayBuffer, options?: {<br>        position?: number;<br>        offset?: number;<br>        length?: number;<br>    }): number;<br>新版本信息:9<br>代替接口: ohos.file.fs.Stream|@ohos.fileio.d.ts|
515|废弃版本有变化|类名:ReadOut;<br>方法or属性:declare interface ReadOut<br>旧版本信息:|类名:ReadOut;<br>方法or属性:declare interface ReadOut<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
516|废弃版本有变化|类名:ReadOut;<br>方法or属性:bytesRead: number;<br>旧版本信息:|类名:ReadOut;<br>方法or属性:bytesRead: number;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
517|废弃版本有变化|类名:ReadOut;<br>方法or属性:offset: number;<br>旧版本信息:|类名:ReadOut;<br>方法or属性:offset: number;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
518|废弃版本有变化|类名:ReadOut;<br>方法or属性:buffer: ArrayBuffer;<br>旧版本信息:|类名:ReadOut;<br>方法or属性:buffer: ArrayBuffer;<br>新版本信息:9<br>代替接口:|@ohos.fileio.d.ts|
519|废弃版本有变化|类名:Statfs;<br>方法or属性:function getFreeBytes(path: string, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:Statfs;<br>方法or属性:function getFreeBytes(path: string, callback: AsyncCallback\<number>): void;<br>新版本信息:9<br>代替接口: ohos.file.statvfs.getFreeSize|@ohos.statfs.d.ts|
520|废弃版本有变化|类名:Statfs;<br>方法or属性:function getFreeBytes(path: string): Promise\<number>;<br>旧版本信息:|类名:Statfs;<br>方法or属性:function getFreeBytes(path: string): Promise\<number>;<br>新版本信息:9<br>代替接口: ohos.file.statvfs.getFreeSize|@ohos.statfs.d.ts|
521|废弃版本有变化|类名:Statfs;<br>方法or属性:function getTotalBytes(path: string, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:Statfs;<br>方法or属性:function getTotalBytes(path: string, callback: AsyncCallback\<number>): void;<br>新版本信息:9<br>代替接口: ohos.file.statvfs.getTotalSize|@ohos.statfs.d.ts|
522|废弃版本有变化|类名:Statfs;<br>方法or属性:function getTotalBytes(path: string): Promise\<number>;<br>旧版本信息:|类名:Statfs;<br>方法or属性:function getTotalBytes(path: string): Promise\<number>;<br>新版本信息:9<br>代替接口: ohos.file.statvfs.getTotalSize|@ohos.statfs.d.ts|
523