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