Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 89) sorted by relevance

1234

/interface/sdk-js/build-tools/jsdoc_format_plugin/test/testCase/
DrunTest.ts2 import path from 'path';
7 const testFileDir = path.join(__dirname, '..', '/ut/');
8 const outputFileDir = path.join(__dirname, '..', '/output/testSingleFile/');
9 const expectFileDir = path.join(__dirname, '..', '/expect/');
13 const testFilePath = path.join(testFileDir, testFileName);
14 const outputFilePath = path.join(outputFileDir, testFileName);
15 const expectFilePath = path.join(expectFileDir, testFileName);
16 const baseName: string = path.basename(testFileName, '.d.ts');
17 const expectReportFilePath: string = path.join(expectFileDir, `${baseName}.json`);
18 const outputReportFilePath: string = path.join(outputFileDir, `${baseName}.json`);
[all …]
/interface/sdk-js/api/
D@ohos.fileio.d.ts106 declare function access(path: string, mode?: number): Promise<void>;
119 declare function access(path: string, callback: AsyncCallback<void>): void;
133 declare function access(path: string, mode: number, callback: AsyncCallback<void>): void;
145 declare function accessSync(path: string, mode?: number): void;
255 declare function createStream(path: string, mode: string): Promise<Stream>;
269 declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;
282 declare function createStreamSync(path: string, mode: string): Stream;
295 declare function chown(path: string, uid: number, gid: number): Promise<void>;
309 declare function chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;
321 declare function chownSync(path: string, uid: number, gid: number): void;
[all …]
D@ohos.file.statvfs.d.ts47 function getFreeSize(path: string): Promise<number>;
70 function getFreeSize(path: string, callback: AsyncCallback<number>): void;
93 function getFreeSizeSync(path: string): number;
116 function getTotalSize(path: string): Promise<number>;
139 function getTotalSize(path: string, callback: AsyncCallback<number>): void;
162 function getTotalSizeSync(path: string): number;
D@ohos.file.securityLabel.d.ts44 function setSecurityLabel(path: string, type: DataLevel): Promise<void>;
63 function setSecurityLabel(path: string, type: DataLevel, callback: AsyncCallback<void>): void;
81 function setSecurityLabelSync(path: string, type: DataLevel): void;
99 function getSecurityLabel(path: string): Promise<string>;
117 function getSecurityLabel(path: string, callback: AsyncCallback<string>): void;
135 function getSecurityLabelSync(path: string): string;
D@ohos.data.storage.d.ts43 function getStorageSync(path: string): Storage;
44 function getStorage(path: string, callback: AsyncCallback<Storage>): void;
45 function getStorage(path: string): Promise<Storage>;
62 function deleteStorageSync(path: string): void;
63 function deleteStorage(path: string, callback: AsyncCallback<void>): void;
64 function deleteStorage(path: string): Promise<void>;
80 function removeStorageFromCacheSync(path: string): void;
81 function removeStorageFromCache(path: string, callback: AsyncCallback<void>): void;
82 function removeStorageFromCache(path: string): Promise<void>;
D@ohos.statfs.d.ts38 function getFreeBytes(path: string, callback: AsyncCallback<number>): void;
50 function getFreeBytes(path: string): Promise<number>;
61 function getTotalBytes(path: string, callback: AsyncCallback<number>): void;
73 function getTotalBytes(path: string): Promise<number>;
D@ohos.file.fs.d.ts315 declare function access(path: string): Promise<boolean>;
358 declare function access(path: string, callback: AsyncCallback<boolean>): void;
401 declare function accessSync(path: string): boolean;
899 declare function createStream(path: string, mode: string): Promise<Stream>;
936 declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;
973 declare function createStreamSync(path: string, mode: string): Stream;
1146 declare function createWatcher(path: string, events: number, listener: WatchEventListener): Watcher;
1505 path: string,
1542 declare function listFile(path: string, callback: AsyncCallback<string[]>): void;
1576 path: string,
[all …]
D@ohos.resourceManager.d.ts1031 getRawFile(path: string, callback: AsyncCallback<Uint8Array>): void;
1043 getRawFile(path: string): Promise<Uint8Array>;
1055 getRawFileDescriptor(path: string, callback: AsyncCallback<RawFileDescriptor>): void;
1067 getRawFileDescriptor(path: string): Promise<RawFileDescriptor>;
1079 closeRawFileDescriptor(path: string, callback: AsyncCallback<void>): void;
1091 closeRawFileDescriptor(path: string): Promise<void>;
2107 getRawFileContent(path: string, callback: _AsyncCallback<Uint8Array>): void;
2130 getRawFileContent(path: string): Promise<Uint8Array>;
2153 getRawFd(path: string, callback: _AsyncCallback<RawFileDescriptor>): void;
2176 getRawFd(path: string): Promise<RawFileDescriptor>;
[all …]
/interface/sdk-js/build-tools/dts_parser/test/testCase/
DrunTest.ts17 import path from 'path';
23 const testFileDir = path.join(__dirname, '..', '/ut/');
24 const outputFileDir = path.join(__dirname, '..', '/output/');
25 const expectFileDir = path.join(__dirname, '..', '/expect/');
28 const baseName: string = path.basename(testFileName, '.d.ts');
29 const testFilePath = path.join(testFileDir, testFileName);
30 const outputFilePath = path.join(outputFileDir, `${baseName}.json`);
31 const expectFilePath = path.join(expectFileDir, `${baseName}.json`);
/interface/sdk-js/build-tools/api_check_plugin/autoTest/testCase/
Dtest.js19 const path = require('path'); constant
23 const testCasesDir = path.join(__dirname, '..', '/ut');
25 const expectFileDir = path.join(__dirname, '..', '/expect');
26 const outputFilePath = path.join(__dirname, '..', 'output');
31 const expectFilePath = path.resolve(expectFileDir, `${fileName.replace(/.d.ts/g, '.txt')}`);
34 const url = path.join(testCasesDir, fileName);
36 fs.writeFileSync(path.join(__dirname, 'testMdfile.txt'), url);
37 scanEntry(path.join(__dirname, 'testMdfile.txt'), prId, true);
40 … const resultFilePath = path.join(outputFilePath, `output_${fileName.replace(/.d.ts/g, '.txt')}`);
/interface/sdk-js/build-tools/collect_application_api/test/testCase/
Dtest.js17 const path = require('path'); constant
24 const appDir = path.join(__dirname, '..', '/ut/');
25 const outputDir = path.join(__dirname, '..', '/output');
26 const expectFileDir = path.join(__dirname, '..', '/expect/');
29 let appProjectPath = path.join(appDir, projectName);
30 let expectFilePath = path.join(expectFileDir, `${projectName}.json`);
31 it('testFile# ' + path.basename(appProjectPath), function () {
42 const outputFilePath = path.join(outputDir, outputFileName[0]);
/interface/sdk-js/build-tools/api_diff/test/testCase/
Dtest.js18 const path = require('path'); constant
22 const testCasesDir = path.join(__dirname, '..', '/ut');
24 const expectFileDir = path.join(__dirname, '..', '/expect');
25 const outputFilePath = path.join(__dirname, '..', 'output');
30 const oldFileDir = path.join(testCasesDir, fileName, 'old');
31 const newFileDir = path.join(testCasesDir, fileName, 'new');
32 const expectFilePath = path.resolve(expectFileDir, `${fileName}.json`);
43 const resultFilePath = path.resolve(argumentObject.output, resultFileName);
/interface/sdk-js/build-tools/jsdoc_format_plugin/src/utils/
DfileUtils.ts17 import path from 'path';
28 const filePath = path.join(dirName, dir.name);
45 const parentDir = path.dirname(filePath);
52 static isDirectory(path: string): boolean {
53 const stats: Stats = fs.lstatSync(path);
57 static isExists(path: string | undefined): boolean {
58 if (!path) {
62 fs.accessSync(path, constants.R_OK);
/interface/sdk-js/build-tools/collect_application_api/
Dwebpack.config.js16 const path = require('path'); constant
28 const bundlejsPath = path.resolve(__dirname, 'dist', 'build', bundleName);
34 const libsPath = path.resolve(__dirname, 'libs');
35 const readme = path.resolve(__dirname, 'reademe.md');
36 const outputName = path.resolve(__dirname, 'dist', `apiCollector-${packageJson.version}.zip`);
53 path: path.resolve(__dirname, 'dist', 'build'), property
/interface/sdk-js/build-tools/collect_application_api/scripts/
Dcopylibs.js17 const path = require('path'); constant
20 const targetLibPath = path.resolve(__dirname, '..', 'libs');
24 const esLibPath = path.resolve(__dirname, '../node_modules/typescript/lib');
28 const srcFilePath = path.resolve(esLibPath, file);
32 const targetFile = path.resolve(targetLibPath, file);
42 const targetFile = path.resolve(targetLibPath, excludeFile);
/interface/sdk-js/build-tools/dts_parser/
Dwebpack.config.js16 const path = require('path'); constant
31 include: path.resolve(__dirname, 'src'),
45 loader: path.resolve(__dirname, 'loader/flavor.js'),
56 path: path.resolve(__dirname, './build'), property
/interface/sdk-js/build-tools/jsdoc_format_plugin/
Dwebpack.config.js16 const path = require('path'); constant
31 include: path.resolve(__dirname, 'src'),
45 loader: path.resolve(__dirname, 'loader/flavor.js'),
56 path: path.resolve(__dirname, './build'), property
/interface/sdk-js/build-tools/api_check_plugin/
Dentry.js16 const path = require('path'); constant
24 const mdFilesPath = path.resolve(sourceDirname, '../../../../', 'all_files.txt');
42 const { scanEntry, reqGitApi } = require(path.resolve(__dirname, './src/api_check_plugin'));
45 removeDir(path.resolve(__dirname, '../api_diff/node_modules'));
46 removeDir(path.resolve(__dirname, 'node_modules'));
57 writeResultFile(result, path.resolve(__dirname, './Result.txt'), {});
65 dirs = dirs.map((dir) => path.join(url, dir));
77 …fs.writeFile(path.resolve(__dirname, outputPath), JSON.stringify(resultData, null, STANDARD_INDENT…
/interface/sdk-js/build-tools/api_check_plugin/test/
Dtest.js17 const path = require('path');
23 require(path.resolve(__dirname, '../src/utils'));
27 removeDir(path.resolve(__dirname, "../../api_diff/node_modules"));
28 removeDir(path.resolve(__dirname, "../node_modules"));
39 writeResultFile(result, path.resolve(__dirname, './Result.txt'), {});
/interface/sdk-js/build-tools/api_diff/src/
Dutil.js16 const path = require('path'); constant
24 internalListFiles(path.resolve(dir, subdir),
25 (filePath) => path.basename(filePath).endsWith('.d.ts'), allFiles);
36 const filePath = path.join(dir, element);
47 const relative = path.relative(parentDir, subPath);
/interface/sdk-js/build-tools/collect_application_api/src/
Dindex.js18 const path = require('path'); constant
125 return path.resolve(__dirname, 'libs');
127 return path.resolve(__dirname, '..', 'libs');
136 const apiPath = path.resolve(argv.sdk, 'api');
137 const componentPath = path.resolve(argv.sdk, 'component');
149 checkPathIsValid(path) { argument
150 if (path && !fs.existsSync(path)) {
151 Logger.error(this.logTag, `${path} not exists`);
Dutils.js17 const path = require('path'); constant
33 const buildProfilePath = path.resolve(this.projectPath, 'build-profile.json5');
60 const localPropertiesPath = path.resolve(this.projectPath, 'local.properties');
103 moduleSrcPaths.push(path.resolve(this.projectPath, module.srcPath));
127 const srcPath = path.resolve(modulePath, sourcePath);
140 const fileName = path.basename(filePath);
171 this.sdkApiRoot = path.resolve(sdkDir, `${sdkVersion}`, 'ets');
209 …FileSystem.listFiles(libPath, (filePath) => path.basename(filePath).endsWith('.d.ts'), this.esLibs…
218 const subDir = path.resolve(sdkRoot, dir);
219 FileSystem.listFiles(subDir, (filePath) => path.basename(filePath).endsWith('.d.ts'), dest);
[all …]
/interface/sdk-js/build-tools/api_diff/
Dwebpack.config.js16 const path = require('path'); constant
24 path: path.resolve(__dirname, 'dist', 'build'), property
/interface/sdk-js/
Dremove_internal.py28 src = os.path.join(input_path, file)
29 dst = os.path.join(output_path, file)
30 if os.path.isdir(src) and (not file in remove_list):
32 elif os.path.isfile(src):
46 if not os.path.exists(options.output):
/interface/sdk-js/build-tools/sdk_upgrade_assistance_plugin/src/main/resources/
Dconst.properties2 check.dir.path = 请选择新版本SDK路径
3 check.old.dir.path = 请选择旧版本SDK路径
4 check.old.sdk.path = 无效的旧版本SDK路径
5 check.new.sdk.path = 无效的新版本SDK路径
7 check.new.sdk.file.path = 新版本路径请选择到api和component文件夹上层
8 check.old.sdk.file.path = 旧版本路径请选择到api和component文件夹上层
40 check.diff.path = updateCheck\\api-diff\\result\\diff(
44 check.log.path = /updateCheck/log

1234