mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-02-25 19:52:16 +00:00
commit
4bb3fd08fe
9
api/@ohos.data.fileAccess.d.ts
vendored
9
api/@ohos.data.fileAccess.d.ts
vendored
@ -14,9 +14,9 @@
|
||||
*/
|
||||
|
||||
import { AsyncCallback, Callback } from "./basic";
|
||||
import { Want } from './ability/want';
|
||||
import Want from './@ohos.application.Want';
|
||||
import Context from './application/Context';
|
||||
import Filter from '@ohos.fileio'
|
||||
import { Filter } from './@ohos.fileio';
|
||||
|
||||
/**
|
||||
* This module provides the capability to access user public files.
|
||||
@ -74,7 +74,7 @@ declare namespace fileAccess {
|
||||
* @param mode Indicates the mode of the file.
|
||||
* @param size Indicates the size of the file.
|
||||
* @param mtime Indicates the mtime of the file.
|
||||
* @param mimetype Indicates the mimetype of the file.
|
||||
* @param mimeType Indicates the mimeType of the file.
|
||||
*/
|
||||
interface FileInfo {
|
||||
/**
|
||||
@ -106,7 +106,7 @@ declare namespace fileAccess {
|
||||
* @type {string}
|
||||
* @readonly
|
||||
*/
|
||||
mimetype: string;
|
||||
mimeType: string;
|
||||
|
||||
/**
|
||||
* List files in the current directory.
|
||||
@ -217,6 +217,7 @@ declare namespace fileAccess {
|
||||
* @since 9
|
||||
* @syscap SystemCapability.FileManagement.UserFileService
|
||||
* @StageModelOnly
|
||||
* @systemapi
|
||||
*/
|
||||
enum OPENFLAGS {
|
||||
/** file is openFile only_read */
|
||||
|
12
api/@ohos.fileExtensionInfo.d.ts
vendored
12
api/@ohos.fileExtensionInfo.d.ts
vendored
@ -46,8 +46,8 @@ declare namespace fileExtensionInfo {
|
||||
* @StageModelOnly
|
||||
*/
|
||||
namespace DeviceFlag {
|
||||
const SUPPORTS_READ = 1;
|
||||
const SUPPORTS_WRITE = 1 << 1;
|
||||
const SUPPORTS_READ = 0b1;
|
||||
const SUPPORTS_WRITE = 0b10;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -58,10 +58,10 @@ declare namespace fileExtensionInfo {
|
||||
* @StageModelOnly
|
||||
*/
|
||||
namespace DocumentFlag {
|
||||
const REPRESENTS_FILE = 1;
|
||||
const REPRESENTS_DIR = 1 << 1;
|
||||
const SUPPORTS_READ = 1 << 2;
|
||||
const SUPPORTS_WRITE = 1 << 3;
|
||||
const REPRESENTS_FILE = 0b1;
|
||||
const REPRESENTS_DIR = 0b10;
|
||||
const SUPPORTS_READ = 0b100;
|
||||
const SUPPORTS_WRITE = 0b1000;
|
||||
}
|
||||
}
|
||||
|
||||
|
4
api/@ohos.fileio.d.ts
vendored
4
api/@ohos.fileio.d.ts
vendored
@ -84,7 +84,7 @@ declare namespace fileIO {
|
||||
export { writeSync };
|
||||
export { Dir };
|
||||
export { Dirent };
|
||||
export { Filter };
|
||||
|
||||
export { ReadOut };
|
||||
export { Stat };
|
||||
export { Stream };
|
||||
@ -1156,7 +1156,7 @@ declare interface Dirent {
|
||||
isSymbolicLink(): boolean;
|
||||
}
|
||||
|
||||
declare interface Filter {
|
||||
export type Filter = {
|
||||
/**
|
||||
* @type {Array<string>}
|
||||
* @syscap SystemCapability.FileManagement.File.FileIO
|
||||
|
Loading…
x
Reference in New Issue
Block a user