Home
last modified time | relevance | path

Searched refs:FileUtils (Results 1 – 13 of 13) sorted by relevance

/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DFileUtils.spec.ts17 import {FileUtils} from '../../../src/utils/FileUtils';
24 assert.strictEqual(FileUtils.readFile(path), undefined);
29 assert.strictEqual(FileUtils.readFile(path), 'hello world!');
35 let obj = FileUtils.readFileAsJson(path);
41 let obj = FileUtils.readFileAsJson(path);
47 let obj = FileUtils.readFileAsJson(path);
54 assert.strictEqual(FileUtils.getFileName(path), undefined);
57 assert.strictEqual(FileUtils.getFileName(path), undefined);
62 assert.strictEqual(FileUtils.getFileName(path), 'user_profile.json');
67 assert.strictEqual(FileUtils.getFileName(path), 'user_profile.json');
[all …]
/arkcompiler/ets_frontend/arkguard/src/utils/
DNameCacheUtil.ts16 import {FileUtils} from './FileUtils';
28 FileUtils.writeFile(destFileName, cacheString);
33 const cacheString: string = FileUtils.readFile(filePath);
DFileUtils.ts20 export class FileUtils { class
/arkcompiler/ets_frontend/arkguard/src/
DArkObfuscator.ts42 import {FileUtils} from './utils/FileUtils';
104 config = FileUtils.readFileAsJson(this.mConfigPath);
149 console.error(`File ${FileUtils.getFileName(sourcePath)} is not found.`);
158 const dirPrefix: string = FileUtils.getPrefix(sourcePath);
170 const currentDir: string = FileUtils.getPathWithoutPrefix(dirName, dirPrefix);
197 …const nameCachePath: string = path.join(outputDir, FileUtils.getFileName(sourceFile) + NAME_CACHE_…
218 …const nameCachePath: string = path.join(outputDir, FileUtils.getFileName(sourceFile) + NAME_CACHE_…
280 let suffix: string = FileUtils.getFileExtension(fileName);
292 const fileName: string = FileUtils.getFileName(sourceFilePath);
298 let content: string = FileUtils.readFile(sourceFilePath);
[all …]
/arkcompiler/runtime_core/tests/cts-generator/generator/
Dparser.rb83 FileUtils.rm_rf @output if File.exist? @output
84 FileUtils.mkdir_p @output unless File.exist? @output
Dcommand.rb62 FileUtils.mkdir_p test_dir unless File.exist? test_dir
108 FileUtils.mkdir_p test_dir unless File.exist? test_dir
/arkcompiler/ets_frontend/arkguard/src/common/
DApiReader.ts18 import {FileUtils} from '../utils/FileUtils';
72 console.error(`File ${FileUtils.getFileName(projectPath)} is not found.`);
/arkcompiler/runtime_core/tests/cts-generator/
Dtest-runner.rb189 FileUtils.mkdir_p $tmp_dir unless File.exist? $tmp_dir
211 FileUtils.rm_r $report_dir, force: true if File.exist? $report_dir
307 FileUtils.rm_rf $tmp_dir if File.exist?($tmp_dir) && Dir.children($tmp_dir).empty?
/arkcompiler/runtime_core/tests/checked/
Dchecker.rb484 FileUtils.rm_rf("#{@cwd}/ir_dump")
485 FileUtils.rm_rf("#{@cwd}/events.csv")
486 FileUtils.rm_rf("#{@cwd}/disasm.txt")
/arkcompiler/runtime_core/tests/cts-generator/runner/
Dsingle_test_runner.rb137 FileUtils.rm(@bin_file) if File.exist? @bin_file
138 FileUtils.rm("#{@bin_file}.aot") if $paoc && File.exist?("#{@bin_file}.aot")
/arkcompiler/runtime_core/tests/cts-generator/runner/reporters/
Dallure_reporter.rb47 FileUtils.rm report_file if report_file.exist?
Djtr_reporter.rb30 FileUtils.rm report_file if report_file.exist?
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
Dcocos_worker_test.js4873 if (void 0 !== jsb.FileUtils) {
4874 jsb.fileUtils = jsb.FileUtils.getInstance();
4875 delete jsb.FileUtils;