Searched refs:FileUtils (Results 1 – 13 of 13) sorted by relevance
/arkcompiler/ets_frontend/arkguard/test/ut/utils/ |
D | FileUtils.spec.ts | 17 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/ |
D | NameCacheUtil.ts | 16 import {FileUtils} from './FileUtils'; 28 FileUtils.writeFile(destFileName, cacheString); 33 const cacheString: string = FileUtils.readFile(filePath);
|
D | FileUtils.ts | 20 export class FileUtils { class
|
/arkcompiler/ets_frontend/arkguard/src/ |
D | ArkObfuscator.ts | 42 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/ |
D | parser.rb | 83 FileUtils.rm_rf @output if File.exist? @output 84 FileUtils.mkdir_p @output unless File.exist? @output
|
D | command.rb | 62 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/ |
D | ApiReader.ts | 18 import {FileUtils} from '../utils/FileUtils'; 72 console.error(`File ${FileUtils.getFileName(projectPath)} is not found.`);
|
/arkcompiler/runtime_core/tests/cts-generator/ |
D | test-runner.rb | 189 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/ |
D | checker.rb | 484 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/ |
D | single_test_runner.rb | 137 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/ |
D | allure_reporter.rb | 47 FileUtils.rm report_file if report_file.exist?
|
D | jtr_reporter.rb | 30 FileUtils.rm report_file if report_file.exist?
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
D | cocos_worker_test.js | 4873 if (void 0 !== jsb.FileUtils) { 4874 jsb.fileUtils = jsb.FileUtils.getInstance(); 4875 delete jsb.FileUtils;
|