| 操作 | 旧版本 | 新版本 | d.ts文件 |
|---|---|---|---|
| 删除 | 类名:Environment; 方法or属性:function getStorageDataDir(callback: AsyncCallback<string>): void; | NA | @ohos.environment.d.ts |
| 删除 | 类名:Environment; 方法or属性:function getStorageDataDir(): Promise<string>; | NA | @ohos.environment.d.ts |
| 删除 | 类名:Environment; 方法or属性:function getUserDataDir(callback: AsyncCallback<string>): void; | NA | @ohos.environment.d.ts |
| 删除 | 类名:Environment; 方法or属性:function getUserDataDir(): Promise<string>; | NA | @ohos.environment.d.ts |
| 删除 | 类名:storageStatistics; 方法or属性:function getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void; | NA | @ohos.storageStatistics.d.ts |
| 删除 | 类名:storageStatistics; 方法or属性:function getTotalSizeOfVolume(volumeUuid: string): Promise<number>; | NA | @ohos.storageStatistics.d.ts |
| 删除 | 类名:storageStatistics; 方法or属性:function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void; | NA | @ohos.storageStatistics.d.ts |
| 删除 | 类名:storageStatistics; 方法or属性:function getFreeSizeOfVolume(volumeUuid: string): Promise<number>; | NA | @ohos.storageStatistics.d.ts |
| 新增 | NA | 类名:Environment; 方法or属性:function getStorageDataDir(): Promise<string>; | @ohos.file.environment.d.ts |
| 新增 | NA | 类名:Environment; 方法or属性:function getStorageDataDir(callback: AsyncCallback<string>): void; | @ohos.file.environment.d.ts |
| 新增 | NA | 类名:Environment; 方法or属性:function getUserDataDir(): Promise<string>; | @ohos.file.environment.d.ts |
| 新增 | NA | 类名:Environment; 方法or属性:function getUserDataDir(callback: AsyncCallback<string>): void; | @ohos.file.environment.d.ts |
| 新增 | NA | 类名:fileAccess; 方法or属性:function getFileAccessAbilityInfo(callback: AsyncCallback<Array<Want>>): void; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:fileAccess; 方法or属性:function getFileAccessAbilityInfo(): Promise<Array<Want>>; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:fileAccess; 方法or属性:function createFileAccessHelper(context: Context): FileAccessHelper; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:fileAccess; 方法or属性:function createFileAccessHelper(context: Context, wants: Array<Want>): FileAccessHelper; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileInfo; 方法or属性:uri: string; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:RootInfo; 方法or属性:uri: string; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileInfo; 方法or属性:fileName: string; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileInfo; 方法or属性:mode: number; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileInfo; 方法or属性:size: number; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileInfo; 方法or属性:mtime: number; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileInfo; 方法or属性:mimeType: string; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileInfo; 方法or属性:listFile(filter?: Filter): FileIterator; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:RootInfo; 方法or属性:listFile(filter?: Filter): FileIterator; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileInfo; 方法or属性:scanFile(filter?: Filter): FileIterator; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:RootInfo; 方法or属性:scanFile(filter?: Filter): FileIterator; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileIterator; 方法or属性:next(): {value: FileInfo, done: boolean} | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:RootInfo; 方法or属性:deviceType: number; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:RootInfo; 方法or属性:displayName: string; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:RootInfo; 方法or属性:deviceFlags: number; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:RootIterator; 方法or属性:next(): {value: RootInfo, done: boolean} | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:OPENFLAGS; 方法or属性:READ = 0o0 | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:OPENFLAGS; 方法or属性:WRITE = 0o1 | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:OPENFLAGS; 方法or属性:WRITE_READ = 0o2 | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:openFile(uri: string, flags: OPENFLAGS) : Promise<number>; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback<number>) : void; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:createFile(uri: string, displayName: string) : Promise<string>; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:createFile(uri: string, displayName: string, callback: AsyncCallback<string>) : void; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:mkDir(parentUri: string, displayName: string) : Promise<string>; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:mkDir(parentUri: string, displayName: string, callback: AsyncCallback<string>) : void; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:delete(uri: string) : Promise<number>; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:delete(uri: string, callback: AsyncCallback<number>) : void; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:move(sourceFile: string, destFile: string) : Promise<string>; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:move(sourceFile: string, destFile: string, callback: AsyncCallback<string>) : void; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:rename(uri: string, displayName: string) : Promise<string>; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:rename(uri: string, displayName: string, callback: AsyncCallback<string>) : void; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:access(sourceFileUri: string) : Promise<boolean>; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:access(sourceFileUri: string, callback: AsyncCallback<boolean>) : void; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:getRoots(): Promise<RootIterator>; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:FileAccessHelper; 方法or属性:getRoots(callback:AsyncCallback<RootIterator>) : void; | @ohos.file.fileAccess.d.ts |
| 新增 | NA | 类名:DeviceType; 方法or属性:DEVICE_LOCAL_DISK = 1 | @ohos.file.fileExtensionInfo.d.ts |
| 新增 | NA | 类名:DeviceType; 方法or属性:DEVICE_SHARED_DISK | @ohos.file.fileExtensionInfo.d.ts |
| 新增 | NA | 类名:DeviceType; 方法or属性:DEVICE_SHARED_TERMINAL | @ohos.file.fileExtensionInfo.d.ts |
| 新增 | NA | 类名:DeviceType; 方法or属性:DEVICE_NETWORK_NEIGHBORHOODS | @ohos.file.fileExtensionInfo.d.ts |
| 新增 | NA | 类名:DeviceType; 方法or属性:DEVICE_EXTERNAL_MTP | @ohos.file.fileExtensionInfo.d.ts |
| 新增 | NA | 类名:DeviceType; 方法or属性:DEVICE_EXTERNAL_USB | @ohos.file.fileExtensionInfo.d.ts |
| 新增 | NA | 类名:DeviceType; 方法or属性:DEVICE_EXTERNAL_CLOUD | @ohos.file.fileExtensionInfo.d.ts |
| 新增 | NA | 类名:fileUri; 方法or属性:function getUriFromPath(path: string): string; | @ohos.file.fileuri.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function access(path: string): Promise<boolean>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function access(path: string, callback: AsyncCallback<boolean>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function accessSync(path: string): boolean; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function close(file: number |File): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function close(file: number |File, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function closeSync(fd: number |File): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function copyFile(src: string |number, dest: string |number, mode?: number): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function copyFile(src: string |number, dest: string |number, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function copyFile(src: string |number, dest: string |number, mode: number, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function copyFileSync(src: string |number, dest: string |number, mode?: number): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function createStream(path: string, mode: string): Promise<Stream>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function createStreamSync(path: string, mode: string): Stream; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function fdatasync(fd: number): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function fdatasyncSync(fd: number): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function fdopenStream(fd: number, mode: string): Promise<Stream>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function fdopenStreamSync(fd: number, mode: string): Stream; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function fsync(fd: number): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function fsync(fd: number, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function fsyncSync(fd: number): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function listFile(path: string, options?: { recursion?: boolean; listNum?: number; filter?: Filter; }): Promise<string[]>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function listFile(path: string, callback: AsyncCallback<string[]>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function listFile(path: string, options: { recursion?: boolean; listNum?: number; filter?: Filter; }, callback: AsyncCallback<string[]>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function listFileSync(path: string, options?: { recursion?: boolean; listNum?: number; filter?: Filter; }): string[]; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function lstat(path: string): Promise<Stat>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function lstat(path: string, callback: AsyncCallback<Stat>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function lstatSync(path: string): Stat; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function mkdir(path: string): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function mkdir(path: string, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function mkdirSync(path: string): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function mkdtemp(prefix: string): Promise<string>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback<string>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function mkdtempSync(prefix: string): string; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function moveFile(src: string, dest: string, mode?: number): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function moveFile(src: string, dest: string, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function moveFile(src: string, dest: string, mode: number, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function moveFileSync(src: string, dest: string, mode?: number): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function open(path: string, mode?: number): Promise<File>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function open(path: string, callback: AsyncCallback<File>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function open(path: string, mode: number, callback: AsyncCallback<File>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function openSync(path: string, mode?: number): File; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): Promise<number>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<number>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; }, callback: AsyncCallback<number>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function readSync(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function readText(filePath: string, options?: { offset?: number; length?: number; encoding?: string; }): Promise<string>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function readText(filePath: string, callback: AsyncCallback<string>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function readText(filePath: string, options: { offset?: number; length?: number; encoding?: string; }, callback: AsyncCallback<string>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function readTextSync(filePath: string, options?: { offset?: number; length?: number; encoding?: string; }): string; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function rename(oldPath: string, newPath: string): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function renameSync(oldPath: string, newPath: string): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function rmdir(path: string): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function rmdir(path: string, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function rmdirSync(path: string): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function stat(file: string |number): Promise<Stat>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function stat(file: string |number, callback: AsyncCallback<Stat>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function statSync(file: string |number): Stat; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function symlink(target: string, srcPath: string): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function symlinkSync(target: string, srcPath: string): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function truncate(file: string |number, len?: number): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function truncate(file: string |number, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function truncate(file: string |number, len: number, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function truncateSync(file: string |number, len?: number): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function unlink(path: string): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function unlink(path: string, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function unlinkSync(path: string): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function write(fd: number, buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; encoding?: string; }): Promise<number>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function write(fd: number, buffer: ArrayBuffer |string, callback: AsyncCallback<number>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function write(fd: number, buffer: ArrayBuffer |string, options: { offset?: number; length?: number; encoding?: string; }, callback: AsyncCallback<number>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:declare function writeSync(fd: number, buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; encoding?: string; }): number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:export type Filter = { / * @type {Array<string>} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ suffix?: Array<string>; / * @type {Array<string>} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ displayName?: Array<string>; / * @type {Array<string>} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ mimeType?: Array<string>; / * @type {number} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ fileSizeOver?: number; / * @type {number} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ lastModifiedAfter?: number; / * @type {boolean} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ excludeMedia?: boolean; } | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:File; 方法or属性:readonly fd: number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:File; 方法or属性:lock(exclusive?: boolean): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:File; 方法or属性:lock(callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:File; 方法or属性:lock(exclusive: boolean, callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:File; 方法or属性:tryLock(exclusive?: boolean): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:File; 方法or属性:unlock(): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:readonly ino: bigint; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:readonly mode: number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:readonly uid: number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:readonly gid: number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:readonly size: number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:readonly atime: number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:readonly mtime: number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:readonly ctime: number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:isBlockDevice(): boolean; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:isCharacterDevice(): boolean; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:isDirectory(): boolean; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:isFIFO(): boolean; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:isFile(): boolean; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:isSocket(): boolean; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stat; 方法or属性:isSymbolicLink(): boolean; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:close(): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:close(callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:closeSync(): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:flush(): Promise<void>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:flush(callback: AsyncCallback<void>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:flushSync(): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:write(buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; encoding?: string; }): Promise<number>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:write(buffer: ArrayBuffer |string, callback: AsyncCallback<number>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:write(buffer: ArrayBuffer |string, options: { offset?: number; length?: number; encoding?: string; }, callback: AsyncCallback<number>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:writeSync(buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; encoding?: string; }): number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:read(buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): Promise<number>; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback<number>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:read(buffer: ArrayBuffer, options: { offset?: number; length?: number; }, callback: AsyncCallback<number>): void; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:Stream; 方法or属性:readSync(buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): number; | @ohos.file.fs.d.ts |
| 新增 | NA | 类名:hash; 方法or属性:function hash(path: string, algorithm: string): Promise<string>; | @ohos.file.hash.d.ts |
| 新增 | NA | 类名:hash; 方法or属性:function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void; | @ohos.file.hash.d.ts |
| 新增 | NA | 类名:PhotoViewMIMETypes; 方法or属性:IMAGE_TYPE = "image/*" | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoViewMIMETypes; 方法or属性:VIDEO_TYPE = "video/*" | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoViewMIMETypes; 方法or属性:IMAGE_VIDEO_TYPE = "/" | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoSelectOptions; 方法or属性:MIMEType?: PhotoViewMIMETypes; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoSelectOptions; 方法or属性:maxSelectNumber?: number; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoSelectResult; 方法or属性:photoUris: Array<string>; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoSelectResult; 方法or属性:isOriginalPhoto: boolean; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoSaveOptions; 方法or属性:newFileNames?: Array<string>; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:DocumentSaveOptions; 方法or属性:newFileNames?: Array<string>; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:AudioSaveOptions; 方法or属性:newFileNames?: Array<string>; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoViewPicker; 方法or属性:select(option?: PhotoSelectOptions) : Promise<PhotoSelectResult>; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoViewPicker; 方法or属性:select(option: PhotoSelectOptions, callback: AsyncCallback<PhotoSelectResult>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoViewPicker; 方法or属性:select(callback: AsyncCallback<PhotoSelectResult>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoViewPicker; 方法or属性:save(option?: PhotoSaveOptions) : Promise<Array<string>>; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoViewPicker; 方法or属性:save(option: PhotoSaveOptions, callback: AsyncCallback<Array<string>>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:PhotoViewPicker; 方法or属性:save(callback: AsyncCallback<Array<string>>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:DocumentViewPicker; 方法or属性:save(callback: AsyncCallback<Array<string>>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:AudioViewPicker; 方法or属性:save(callback: AsyncCallback<Array<string>>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:DocumentViewPicker; 方法or属性:select(option?: DocumentSelectOptions) : Promise<Array<string>>; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:DocumentViewPicker; 方法or属性:select(option: DocumentSelectOptions, callback: AsyncCallback<Array<string>>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:DocumentViewPicker; 方法or属性:select(callback: AsyncCallback<Array<string>>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:AudioViewPicker; 方法or属性:select(callback: AsyncCallback<Array<string>>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:DocumentViewPicker; 方法or属性:save(option?: DocumentSaveOptions) : Promise<Array<string>>; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:DocumentViewPicker; 方法or属性:save(option: DocumentSaveOptions, callback: AsyncCallback<Array<string>>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:AudioViewPicker; 方法or属性:select(option?: AudioSelectOptions) : Promise<Array<string>>; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:AudioViewPicker; 方法or属性:select(option: AudioSelectOptions, callback: AsyncCallback<Array<string>>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:AudioViewPicker; 方法or属性:save(option?: AudioSaveOptions) : Promise<Array<string>>; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:AudioViewPicker; 方法or属性:save(option: AudioSaveOptions, callback: AsyncCallback<Array<string>>) : void; | @ohos.file.picker.d.ts |
| 新增 | NA | 类名:securityLabel; 方法or属性:type DataLevel = 's0'|'s1'|'s2'|'s3'|'s4'; | @ohos.file.securityLabel.d.ts |
| 新增 | NA | 类名:securityLabel; 方法or属性:function setSecurityLabel(path: string, type: DataLevel): Promise<void>; | @ohos.file.securityLabel.d.ts |
| 新增 | NA | 类名:securityLabel; 方法or属性:function setSecurityLabel(path: string, type: DataLevel, callback: AsyncCallback<void>): void; | @ohos.file.securityLabel.d.ts |
| 新增 | NA | 类名:securityLabel; 方法or属性:function setSecurityLabelSync(path: string, type: DataLevel): void; | @ohos.file.securityLabel.d.ts |
| 新增 | NA | 类名:securityLabel; 方法or属性:function getSecurityLabel(path: string): Promise<string>; | @ohos.file.securityLabel.d.ts |
| 新增 | NA | 类名:securityLabel; 方法or属性:function getSecurityLabel(path: string, callback: AsyncCallback<string>): void; | @ohos.file.securityLabel.d.ts |
| 新增 | NA | 类名:securityLabel; 方法or属性:function getSecurityLabelSync(path: string): string; | @ohos.file.securityLabel.d.ts |
| 新增 | NA | 类名:statfs; 方法or属性:function getFreeSize(path: string): Promise<number>; | @ohos.file.statvfs.d.ts |
| 新增 | NA | 类名:statfs; 方法or属性:function getFreeSize(path: string, callback: AsyncCallback<number>): void; | @ohos.file.statvfs.d.ts |
| 新增 | NA | 类名:statfs; 方法or属性:function getTotalSize(path: string): Promise<number>; | @ohos.file.statvfs.d.ts |
| 新增 | NA | 类名:statfs; 方法or属性:function getTotalSize(path: string, callback: AsyncCallback<number>): void; | @ohos.file.statvfs.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getTotalSizeOfVolume(volumeUuid: string): Promise<number>; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getFreeSizeOfVolume(volumeUuid: string): Promise<number>; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getBundleStats(packageName: string, callback: AsyncCallback<BundleStats>): void; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getBundleStats(packageName: string): Promise<BundleStats>; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getCurrentBundleStats(callback: AsyncCallback<BundleStats>): void; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getCurrentBundleStats(): Promise<BundleStats>; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getSystemSize(callback: AsyncCallback<number>): void; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getSystemSize(): Promise<number>; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getUserStorageStats(): Promise<StorageStats>; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getUserStorageStats(callback: AsyncCallback<StorageStats>): void; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getUserStorageStats(userId: number): Promise<StorageStats>; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getUserStorageStats(userId: number, callback: AsyncCallback<StorageStats>): void; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getTotalSize(callback: AsyncCallback<number>): void; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getTotalSize(): Promise<number>; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getFreeSize(callback: AsyncCallback<number>): void; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:storageStatistics; 方法or属性:function getFreeSize(): Promise<number>; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:BundleStats; 方法or属性:appSize: number; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:BundleStats; 方法or属性:cacheSize: number; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:BundleStats; 方法or属性:dataSize: number; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:StorageStats; 方法or属性:total: number; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:StorageStats; 方法or属性:audio: number; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:StorageStats; 方法or属性:video: number; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:StorageStats; 方法or属性:image: number; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:StorageStats; 方法or属性:file: number; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:StorageStats; 方法or属性:app: number; | @ohos.file.storageStatistics.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function getAllVolumes(callback: AsyncCallback<Array<Volume>>): void; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function getAllVolumes(): Promise<Array<Volume>>; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function mount(volumeId: string, callback: AsyncCallback<void>): void; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function mount(volumeId: string): Promise<void>; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function unmount(volumeId: string, callback: AsyncCallback<void>): void; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function unmount(volumeId: string): Promise<void>; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function getVolumeByUuid(uuid: string, callback: AsyncCallback<Volume>): void; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function getVolumeByUuid(uuid: string): Promise<Volume>; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function getVolumeById(volumeId: string, callback: AsyncCallback<Volume>): void; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function getVolumeById(volumeId: string): Promise<Volume>; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function setVolumeDescription(uuid: string, description: string, callback: AsyncCallback<void>): void; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function setVolumeDescription(uuid: string, description: string): Promise<void>; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function format(volumeId: string, fsType: string, callback: AsyncCallback<void>): void; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function format(volumeId: string, fsType: string): Promise<void>; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function partition(diskId: string, type: number, callback: AsyncCallback<void>): void; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:volumeManager; 方法or属性:function partition(diskId: string, type: number): Promise<void>; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:Volume; 方法or属性:id: string; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:Volume; 方法or属性:uuid: string; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:Volume; 方法or属性:diskId: string; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:Volume; 方法or属性:description: string; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:Volume; 方法or属性:removable: boolean; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:Volume; 方法or属性:state: number; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:Volume; 方法or属性:path: string; | @ohos.file.volumeManager.d.ts |
| 新增 | NA | 类名:sourcefile; 方法or属性:export type Filter = { / * @type {Array<string>} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ suffix: Array<string>; / * @type {Array<string>} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ displayName?: Array<string>; / * @type {Array<string>} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ mimeType?: Array<string>; / * @type {number} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ fileSizeOver?: number; / * @type {number} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ lastModifiedAfter?: number; / * @type {boolean} * @syscap SystemCapability.FileManagement.File.FileIO * @systemapi * @since 9 * @readonly */ excludeMedia?: boolean; } | @ohos.fileio.d.ts |
| 新增 | NA | 类名:userFileManager; 方法or属性:function getUserFileMgr(context: Context): UserFileManager; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:userFileManager; 方法or属性:type MemberType = number |string |boolean; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:userFileManager; 方法or属性:type ChangeEvent = 'deviceChange' |'albumChange' |'imageChange' |'audioChange' |'videoChange' |'remoteFileChange'; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileType; 方法or属性:IMAGE = 1 | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileType; 方法or属性:VIDEO | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileType; 方法or属性:AUDIO | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:readonly uri: string; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:readonly fileType: FileType; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:displayName: string; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:get(member: string): MemberType; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:set(member: string, value: string): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:commitModify(callback: AsyncCallback<void>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:Album; 方法or属性:commitModify(callback: AsyncCallback<void>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:commitModify(): Promise<void>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:Album; 方法or属性:commitModify(): Promise<void>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:open(mode: string, callback: AsyncCallback<number>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:open(mode: string): Promise<number>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:close(fd: number, callback: AsyncCallback<void>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:close(fd: number): Promise<void>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:getThumbnail(callback: AsyncCallback<image.PixelMap>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:getThumbnail(size: image.Size, callback: AsyncCallback<image.PixelMap>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:getThumbnail(size?: image.Size): Promise<image.PixelMap>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:favorite(isFavorite: boolean, callback: AsyncCallback<void>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FileAsset; 方法or属性:favorite(isFavorite: boolean): Promise<void>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AudioKey; 方法or属性:URI | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:URI | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AlbumKey; 方法or属性:URI | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AudioKey; 方法or属性:DISPLAY_NAME | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:DISPLAY_NAME | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AudioKey; 方法or属性:DATE_ADDED | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:DATE_ADDED | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AlbumKey; 方法or属性:DATE_ADDED | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AudioKey; 方法or属性:DATE_MODIFIED | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:DATE_MODIFIED | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AlbumKey; 方法or属性:DATE_MODIFIED | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AudioKey; 方法or属性:TITLE | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:TITLE | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AudioKey; 方法or属性:ARTIST | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AudioKey; 方法or属性:AUDIOALBUM | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AudioKey; 方法or属性:DURATION | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:DURATION | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AudioKey; 方法or属性:FAVORITE | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:FAVORITE | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:FILE_TYPE | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AlbumKey; 方法or属性:FILE_TYPE | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:WIDTH | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:HEIGHT | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:DATE_TAKEN | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:ImageVideoKey; 方法or属性:ORIENTATION | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AlbumKey; 方法or属性:ALBUM_NAME | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchOptions; 方法or属性:fetchColumns: Array<string>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchOptions; 方法or属性:predicates: dataSharePredicates.DataSharePredicates; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AlbumFetchOptions; 方法or属性:predicates: dataSharePredicates.DataSharePredicates; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchResult; 方法or属性:getCount(): number; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchResult; 方法or属性:isAfterLast(): boolean; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchResult; 方法or属性:close(): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchResult; 方法or属性:getFirstObject(callback: AsyncCallback<T>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchResult; 方法or属性:getFirstObject(): Promise<T>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchResult; 方法or属性:getNextObject(callback: AsyncCallback<T>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchResult; 方法or属性:getNextObject(): Promise<T>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchResult; 方法or属性:getLastObject(callback: AsyncCallback<T>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchResult; 方法or属性:getLastObject(): Promise<T>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchResult; 方法or属性:getPositionObject(index: number, callback: AsyncCallback<T>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:FetchResult; 方法or属性:getPositionObject(index: number): Promise<T>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AbsAlbum; 方法or属性:albumName: string; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AbsAlbum; 方法or属性:readonly albumUri: string; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AbsAlbum; 方法or属性:readonly dateModified: number; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AbsAlbum; 方法or属性:readonly count: number; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AbsAlbum; 方法or属性:readonly coverUri: string; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AbsAlbum; 方法or属性:getPhotoAssets(options: FetchOptions, callback: AsyncCallback<FetchResult<FileAsset>>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getPhotoAssets(options: FetchOptions, callback: AsyncCallback<FetchResult<FileAsset>>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:AbsAlbum; 方法or属性:getPhotoAssets(options: FetchOptions): Promise<FetchResult<FileAsset>>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getPhotoAssets(options: FetchOptions): Promise<FetchResult<FileAsset>>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:createPhotoAsset(displayName: string, albumUri: string, callback: AsyncCallback<FileAsset>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:createPhotoAsset(displayName: string, callback: AsyncCallback<FileAsset>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:createPhotoAsset(displayName: string, albumUri?: string): Promise<FileAsset>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getPhotoAlbums(options: AlbumFetchOptions, callback: AsyncCallback<FetchResult<Album>>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getPhotoAlbums(options: AlbumFetchOptions): Promise<FetchResult<Album>>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getPrivateAlbum(type: PrivateAlbumType, callback: AsyncCallback<FetchResult<PrivateAlbum>>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getPrivateAlbum(type: PrivateAlbumType): Promise<FetchResult<PrivateAlbum>>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getAudioAssets(options: FetchOptions, callback: AsyncCallback<FetchResult<FileAsset>>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getAudioAssets(options: FetchOptions): Promise<FetchResult<FileAsset>>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:delete(uri: string, callback: AsyncCallback<void>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:PrivateAlbum; 方法or属性:delete(uri: string, callback: AsyncCallback<void>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:delete(uri: string): Promise<void>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:PrivateAlbum; 方法or属性:delete(uri: string): Promise<void>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:on(type: ChangeEvent, callback: Callback<void>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:off(type: ChangeEvent, callback?: Callback<void>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getActivePeers(callback: AsyncCallback<Array<PeerInfo>>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getActivePeers(): Promise<Array<PeerInfo>>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getAllPeers(callback: AsyncCallback<Array<PeerInfo>>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:getAllPeers(): Promise<Array<PeerInfo>>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:release(callback: AsyncCallback<void>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:UserFileManager; 方法or属性:release(): Promise<void>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:PeerInfo; 方法or属性:readonly deviceName: string; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:PeerInfo; 方法or属性:readonly networkId: string; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:PeerInfo; 方法or属性:readonly isOnline: boolean; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:PrivateAlbumType; 方法or属性:TYPE_FAVORITE | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:PrivateAlbumType; 方法or属性:TYPE_TRASH | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:PrivateAlbum; 方法or属性:recover(uri: string, callback: AsyncCallback<void>): void; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:PrivateAlbum; 方法or属性:recover(uri: string): Promise<void>; | @ohos.filemanagement.userFileManager.d.ts |
| 新增 | NA | 类名:fileShare; 方法or属性:function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags, callback: AsyncCallback<void>): void; | @ohos.fileshare.d.ts |
| 新增 | NA | 类名:fileShare; 方法or属性:function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags): Promise<void>; | @ohos.fileshare.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function choose(types?: string[]): Promise<string>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function choose(types?: string[]): Promise<string>; 新版本信息:9 代替接口: | @ohos.document.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function choose(callback: AsyncCallback<string>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function choose(callback: AsyncCallback<string>): void; 新版本信息:9 代替接口: | @ohos.document.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function choose(types: string[], callback: AsyncCallback<string>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function choose(types: string[], callback: AsyncCallback<string>): void; 新版本信息:9 代替接口: | @ohos.document.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function show(uri: string, type: string): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function show(uri: string, type: string): Promise<void>; 新版本信息:9 代替接口: | @ohos.document.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function show(uri: string, type: string, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function show(uri: string, type: string, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: | @ohos.document.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function access(path: string, mode?: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function access(path: string, mode?: number): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.access | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function access(path: string, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function access(path: string, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.access | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function access(path: string, mode: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function access(path: string, mode: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.access | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function accessSync(path: string, mode?: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function accessSync(path: string, mode?: number): void; 新版本信息:9 代替接口: ohos.file.fs.accessSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function close(fd: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function close(fd: number): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.close | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function close(fd: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function close(fd: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.close | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function closeSync(fd: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function closeSync(fd: number): void; 新版本信息:9 代替接口: ohos.file.fs.closeSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function copyFile(src: string |number, dest: string |number, mode?: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function copyFile(src: string |number, dest: string |number, mode?: number): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.copyFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function copyFile(src: string |number, dest: string |number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function copyFile(src: string |number, dest: string |number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.copyFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function copyFile(src: string |number, dest: string |number, mode: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function copyFile(src: string |number, dest: string |number, mode: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.copyFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function copyFileSync(src: string |number, dest: string |number, mode?: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function copyFileSync(src: string |number, dest: string |number, mode?: number): void; 新版本信息:9 代替接口: ohos.file.fs.copyFileSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function createStream(path: string, mode: string): Promise<Stream>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function createStream(path: string, mode: string): Promise<Stream>; 新版本信息:9 代替接口: ohos.file.fs.createStream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void; 新版本信息:9 代替接口: ohos.file.fs.createStream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function createStreamSync(path: string, mode: string): Stream; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function createStreamSync(path: string, mode: string): Stream; 新版本信息:9 代替接口: ohos.file.fs.createStreamSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function chown(path: string, uid: number, gid: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function chown(path: string, uid: number, gid: number): Promise<void>; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function chownSync(path: string, uid: number, gid: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function chownSync(path: string, uid: number, gid: number): void; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function chmod(path: string, mode: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function chmod(path: string, mode: number): Promise<void>; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function chmod(path: string, mode: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function chmod(path: string, mode: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function chmodSync(path: string, mode: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function chmodSync(path: string, mode: number): void; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function ftruncate(fd: number, len?: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function ftruncate(fd: number, len?: number): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.truncate | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function ftruncate(fd: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function ftruncate(fd: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.truncate | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function ftruncate(fd: number, len: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function ftruncate(fd: number, len: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.truncate | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function ftruncateSync(fd: number, len?: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function ftruncateSync(fd: number, len?: number): void; 新版本信息:9 代替接口: ohos.file.fs.truncateSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fsync(fd: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fsync(fd: number): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.fsync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fsync(fd: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fsync(fd: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.fsync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fsyncSync(fd: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fsyncSync(fd: number): void; 新版本信息:9 代替接口: ohos.file.fs.fsyncSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fstat(fd: number): Promise<Stat>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fstat(fd: number): Promise<Stat>; 新版本信息:9 代替接口: ohos.file.fs.stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fstat(fd: number, callback: AsyncCallback<Stat>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fstat(fd: number, callback: AsyncCallback<Stat>): void; 新版本信息:9 代替接口: ohos.file.fs.stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fstatSync(fd: number): Stat; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fstatSync(fd: number): Stat; 新版本信息:9 代替接口: ohos.file.fs.statSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fdatasync(fd: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fdatasync(fd: number): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.fdatasync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.fdatasync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fdatasyncSync(fd: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fdatasyncSync(fd: number): void; 新版本信息:9 代替接口: ohos.file.fs.fdatasyncSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fchown(fd: number, uid: number, gid: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fchown(fd: number, uid: number, gid: number): Promise<void>; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fchownSync(fd: number, uid: number, gid: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fchownSync(fd: number, uid: number, gid: number): void; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fchmod(fd: number, mode: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fchmod(fd: number, mode: number): Promise<void>; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fchmod(fd: number, mode: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fchmod(fd: number, mode: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fchmodSync(fd: number, mode: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fchmodSync(fd: number, mode: number): void; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fdopenStream(fd: number, mode: string): Promise<Stream>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fdopenStream(fd: number, mode: string): Promise<Stream>; 新版本信息:9 代替接口: ohos.file.fs.fdopenStream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void; 新版本信息:9 代替接口: ohos.file.fs.fdopenStream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function fdopenStreamSync(fd: number, mode: string): Stream; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function fdopenStreamSync(fd: number, mode: string): Stream; 新版本信息:9 代替接口: ohos.file.fs.fdopenStreamSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function hash(path: string, algorithm: string): Promise<string>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function hash(path: string, algorithm: string): Promise<string>; 新版本信息:9 代替接口: ohos.file.hash.hash | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void; 新版本信息:9 代替接口: ohos.file.hash.hash | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function lchown(path: string, uid: number, gid: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function lchown(path: string, uid: number, gid: number): Promise<void>; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function lchown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function lchown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function lchownSync(path: string, uid: number, gid: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function lchownSync(path: string, uid: number, gid: number): void; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function lstat(path: string): Promise<Stat>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function lstat(path: string): Promise<Stat>; 新版本信息:9 代替接口: ohos.file.fs.lstat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function lstat(path: string, callback: AsyncCallback<Stat>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function lstat(path: string, callback: AsyncCallback<Stat>): void; 新版本信息:9 代替接口: ohos.file.fs.lstat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function lstatSync(path: string): Stat; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function lstatSync(path: string): Stat; 新版本信息:9 代替接口: ohos.file.fs.lstatSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function mkdir(path: string, mode?: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function mkdir(path: string, mode?: number): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.mkdir | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function mkdir(path: string, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function mkdir(path: string, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.mkdir | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function mkdir(path: string, mode: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function mkdir(path: string, mode: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.mkdir | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function mkdirSync(path: string, mode?: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function mkdirSync(path: string, mode?: number): void; 新版本信息:9 代替接口: ohos.file.fs.mkdirSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function mkdtemp(prefix: string): Promise<string>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function mkdtemp(prefix: string): Promise<string>; 新版本信息:9 代替接口: ohos.file.fs.mkdtemp | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback<string>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback<string>): void; 新版本信息:9 代替接口: ohos.file.fs.mkdtemp | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function mkdtempSync(prefix: string): string; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function mkdtempSync(prefix: string): string; 新版本信息:9 代替接口: ohos.file.fs.mkdtempSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function open(path: string, flags?: number, mode?: number): Promise<number>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function open(path: string, flags?: number, mode?: number): Promise<number>; 新版本信息:9 代替接口: ohos.file.fs.open | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function open(path: string, callback: AsyncCallback<number>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function open(path: string, callback: AsyncCallback<number>): void; 新版本信息:9 代替接口: ohos.file.fs.open | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function open(path: string, flags: number, callback: AsyncCallback<number>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function open(path: string, flags: number, callback: AsyncCallback<number>): void; 新版本信息:9 代替接口: ohos.file.fs.open | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function open(path: string, flags: number, mode: number, callback: AsyncCallback<number>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function open(path: string, flags: number, mode: number, callback: AsyncCallback<number>): void; 新版本信息:9 代替接口: ohos.file.fs.open | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function openSync(path: string, flags?: number, mode?: number): number; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function openSync(path: string, flags?: number, mode?: number): number; 新版本信息:9 代替接口: ohos.file.fs.openSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function opendir(path: string): Promise<Dir>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function opendir(path: string): Promise<Dir>; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function opendir(path: string, callback: AsyncCallback<Dir>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function opendir(path: string, callback: AsyncCallback<Dir>): void; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function opendirSync(path: string): Dir; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function opendirSync(path: string): Dir; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function readText(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): Promise<string>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function readText(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): Promise<string>; 新版本信息:9 代替接口: ohos.file.fs.readText | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function readText(filePath: string, options: { position?: number; length?: number; encoding?: string; }, callback: AsyncCallback<string>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function readText(filePath: string, options: { position?: number; length?: number; encoding?: string; }, callback: AsyncCallback<string>): void; 新版本信息:9 代替接口: ohos.file.fs.readText | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function readTextSync(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): string; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function readTextSync(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): string; 新版本信息:9 代替接口: ohos.file.fs.readTextSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): Promise<ReadOut> 旧版本信息: | 类名:sourcefile; 方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): Promise<ReadOut> 新版本信息:9 代替接口: ohos.file.fs.read | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void; 新版本信息:9 代替接口: ohos.file.fs.read | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; position?: number; }, callback: AsyncCallback<ReadOut>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; position?: number; }, callback: AsyncCallback<ReadOut>): void; 新版本信息:9 代替接口: ohos.file.fs.read | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function readSync(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): number; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function readSync(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): number; 新版本信息:9 代替接口: ohos.file.fs.readSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function rename(oldPath: string, newPath: string): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function rename(oldPath: string, newPath: string): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.rename | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.rename | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function renameSync(oldPath: string, newPath: string): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function renameSync(oldPath: string, newPath: string): void; 新版本信息:9 代替接口: ohos.file.fs.renameSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function rmdir(path: string): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function rmdir(path: string): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.rmdir | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function rmdir(path: string, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function rmdir(path: string, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.rmdir | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function rmdirSync(path: string): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function rmdirSync(path: string): void; 新版本信息:9 代替接口: ohos.file.fs.rmdirSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function stat(path: string): Promise<Stat>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function stat(path: string): Promise<Stat>; 新版本信息:9 代替接口: ohos.file.fs.stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function stat(path: string, callback: AsyncCallback<Stat>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function stat(path: string, callback: AsyncCallback<Stat>): void; 新版本信息:9 代替接口: ohos.file.fs.stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function statSync(path: string): Stat; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function statSync(path: string): Stat; 新版本信息:9 代替接口: ohos.file.fs.statSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function symlink(target: string, srcPath: string): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function symlink(target: string, srcPath: string): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.symlink | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.symlink | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function symlinkSync(target: string, srcPath: string): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function symlinkSync(target: string, srcPath: string): void; 新版本信息:9 代替接口: ohos.file.fs.symlinkSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function truncate(path: string, len?: number): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function truncate(path: string, len?: number): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.truncate | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function truncate(path: string, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function truncate(path: string, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.truncate | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function truncate(path: string, len: number, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function truncate(path: string, len: number, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.truncate | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function truncateSync(path: string, len?: number): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function truncateSync(path: string, len?: number): void; 新版本信息:9 代替接口: ohos.file.fs.truncateSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function unlink(path: string): Promise<void>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function unlink(path: string): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.unlink | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function unlink(path: string, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function unlink(path: string, callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.unlink | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function unlinkSync(path: string): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function unlinkSync(path: string): void; 新版本信息:9 代替接口: ohos.file.fs.unlinkSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function write(fd: number, buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise<number>; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function write(fd: number, buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise<number>; 新版本信息:9 代替接口: ohos.file.fs.write | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function write(fd: number, buffer: ArrayBuffer |string, callback: AsyncCallback<number>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function write(fd: number, buffer: ArrayBuffer |string, callback: AsyncCallback<number>): void; 新版本信息:9 代替接口: ohos.file.fs.write | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function write(fd: number, buffer: ArrayBuffer |string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback<number>): void; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function write(fd: number, buffer: ArrayBuffer |string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback<number>): void; 新版本信息:9 代替接口: ohos.file.fs.write | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:sourcefile; 方法or属性:declare function writeSync(fd: number, buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): number; 旧版本信息: | 类名:sourcefile; 方法or属性:declare function writeSync(fd: number, buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): number; 新版本信息:9 代替接口: ohos.file.fs.writeSync | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dir; 方法or属性:read(): Promise<Dirent>; 旧版本信息: | 类名:Dir; 方法or属性:read(): Promise<Dirent>; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dir; 方法or属性:readSync(): Dirent; 旧版本信息: | 类名:Dir; 方法or属性:readSync(): Dirent; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dir; 方法or属性:close(): Promise<void>; 旧版本信息: | 类名:Dir; 方法or属性:close(): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:close(): Promise<void>; 旧版本信息: | 类名:Stream; 方法or属性:close(): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dir; 方法or属性:closeSync(): void; 旧版本信息: | 类名:Dir; 方法or属性:closeSync(): void; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:closeSync(): void; 旧版本信息: | 类名:Stream; 方法or属性:closeSync(): void; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dirent; 方法or属性:declare interface Dirent 旧版本信息: | 类名:Dirent; 方法or属性:declare interface Dirent 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dirent; 方法or属性:readonly name: string; 旧版本信息: | 类名:Dirent; 方法or属性:readonly name: string; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dirent; 方法or属性:isBlockDevice(): boolean; 旧版本信息: | 类名:Dirent; 方法or属性:isBlockDevice(): boolean; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:isBlockDevice(): boolean; 旧版本信息: | 类名:Stat; 方法or属性:isBlockDevice(): boolean; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dirent; 方法or属性:isCharacterDevice(): boolean; 旧版本信息: | 类名:Dirent; 方法or属性:isCharacterDevice(): boolean; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:isCharacterDevice(): boolean; 旧版本信息: | 类名:Stat; 方法or属性:isCharacterDevice(): boolean; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dirent; 方法or属性:isDirectory(): boolean; 旧版本信息: | 类名:Dirent; 方法or属性:isDirectory(): boolean; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:isDirectory(): boolean; 旧版本信息: | 类名:Stat; 方法or属性:isDirectory(): boolean; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dirent; 方法or属性:isFIFO(): boolean; 旧版本信息: | 类名:Dirent; 方法or属性:isFIFO(): boolean; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:isFIFO(): boolean; 旧版本信息: | 类名:Stat; 方法or属性:isFIFO(): boolean; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dirent; 方法or属性:isFile(): boolean; 旧版本信息: | 类名:Dirent; 方法or属性:isFile(): boolean; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:isFile(): boolean; 旧版本信息: | 类名:Stat; 方法or属性:isFile(): boolean; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dirent; 方法or属性:isSocket(): boolean; 旧版本信息: | 类名:Dirent; 方法or属性:isSocket(): boolean; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:isSocket(): boolean; 旧版本信息: | 类名:Stat; 方法or属性:isSocket(): boolean; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Dirent; 方法or属性:isSymbolicLink(): boolean; 旧版本信息: | 类名:Dirent; 方法or属性:isSymbolicLink(): boolean; 新版本信息:9 代替接口: ohos.file.fs.listFile | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:isSymbolicLink(): boolean; 旧版本信息: | 类名:Stat; 方法or属性:isSymbolicLink(): boolean; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:declare interface Stat 旧版本信息: | 类名:Stat; 方法or属性:declare interface Stat 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly dev: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly dev: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly ino: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly ino: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly mode: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly mode: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly nlink: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly nlink: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly uid: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly uid: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly gid: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly gid: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly rdev: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly rdev: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly size: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly size: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly blocks: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly blocks: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly atime: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly atime: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly mtime: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly mtime: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stat; 方法or属性:readonly ctime: number; 旧版本信息: | 类名:Stat; 方法or属性:readonly ctime: number; 新版本信息:9 代替接口: ohos.file.fs.Stat | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:declare interface Stream 旧版本信息: | 类名:Stream; 方法or属性:declare interface Stream 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:close(callback: AsyncCallback<void>): void; 旧版本信息: | 类名:Stream; 方法or属性:close(callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:flush(): Promise<void>; 旧版本信息: | 类名:Stream; 方法or属性:flush(): Promise<void>; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:flush(callback: AsyncCallback<void>): void; 旧版本信息: | 类名:Stream; 方法or属性:flush(callback: AsyncCallback<void>): void; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:flushSync(): void; 旧版本信息: | 类名:Stream; 方法or属性:flushSync(): void; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:write(buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise<number>; 旧版本信息: | 类名:Stream; 方法or属性:write(buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise<number>; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:write(buffer: ArrayBuffer |string, callback: AsyncCallback<number>): void; 旧版本信息: | 类名:Stream; 方法or属性:write(buffer: ArrayBuffer |string, callback: AsyncCallback<number>): void; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:write(buffer: ArrayBuffer |string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback<number>): void; 旧版本信息: | 类名:Stream; 方法or属性:write(buffer: ArrayBuffer |string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback<number>): void; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:writeSync(buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): number; 旧版本信息: | 类名:Stream; 方法or属性:writeSync(buffer: ArrayBuffer |string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): number; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:read(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): Promise<ReadOut>; 旧版本信息: | 类名:Stream; 方法or属性:read(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): Promise<ReadOut>; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void; 旧版本信息: | 类名:Stream; 方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:read(buffer: ArrayBuffer, options: { position?: number; offset?: number; length?: number; }, callback: AsyncCallback<ReadOut>): void; 旧版本信息: | 类名:Stream; 方法or属性:read(buffer: ArrayBuffer, options: { position?: number; offset?: number; length?: number; }, callback: AsyncCallback<ReadOut>): void; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Stream; 方法or属性:readSync(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): number; 旧版本信息: | 类名:Stream; 方法or属性:readSync(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): number; 新版本信息:9 代替接口: ohos.file.fs.Stream | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:ReadOut; 方法or属性:declare interface ReadOut 旧版本信息: | 类名:ReadOut; 方法or属性:declare interface ReadOut 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:ReadOut; 方法or属性:bytesRead: number; 旧版本信息: | 类名:ReadOut; 方法or属性:bytesRead: number; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:ReadOut; 方法or属性:offset: number; 旧版本信息: | 类名:ReadOut; 方法or属性:offset: number; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:ReadOut; 方法or属性:buffer: ArrayBuffer; 旧版本信息: | 类名:ReadOut; 方法or属性:buffer: ArrayBuffer; 新版本信息:9 代替接口: | @ohos.fileio.d.ts |
| 废弃版本有变化 | 类名:Statfs; 方法or属性:function getFreeBytes(path: string, callback: AsyncCallback<number>): void; 旧版本信息: | 类名:Statfs; 方法or属性:function getFreeBytes(path: string, callback: AsyncCallback<number>): void; 新版本信息:9 代替接口: ohos.file.statvfs.getFreeSize | @ohos.statfs.d.ts |
| 废弃版本有变化 | 类名:Statfs; 方法or属性:function getFreeBytes(path: string): Promise<number>; 旧版本信息: | 类名:Statfs; 方法or属性:function getFreeBytes(path: string): Promise<number>; 新版本信息:9 代替接口: ohos.file.statvfs.getFreeSize | @ohos.statfs.d.ts |
| 废弃版本有变化 | 类名:Statfs; 方法or属性:function getTotalBytes(path: string, callback: AsyncCallback<number>): void; 旧版本信息: | 类名:Statfs; 方法or属性:function getTotalBytes(path: string, callback: AsyncCallback<number>): void; 新版本信息:9 代替接口: ohos.file.statvfs.getTotalSize | @ohos.statfs.d.ts |
| 废弃版本有变化 | 类名:Statfs; 方法or属性:function getTotalBytes(path: string): Promise<number>; 旧版本信息: | 类名:Statfs; 方法or属性:function getTotalBytes(path: string): Promise<number>; 新版本信息:9 代替接口: ohos.file.statvfs.getTotalSize | @ohos.statfs.d.ts |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙js-apidiff-accessibility
harmony 鸿蒙js-apidiff-application