Home
last modified time | relevance | path

Searched refs:fpath (Results 1 – 25 of 117) sorted by relevance

12345

/test/xts/acts/storage/storagefileiojstest/src/main/js/test/module_fileio/members/
Daccess.test.js35 let fpath = await nextFileName('fileio_test_access_sync_000');
36 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 fileio.accessSync(fpath);
40 fileio.unlinkSync(fpath);
58 let fpath = await nextFileName('fileio_test_access_sync_001');
59 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
62 fileio.accessSync(fpath, 2);
63 fileio.unlinkSync(fpath);
81 let fpath = await nextFileName('fileio_test_access_sync_002');
82 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
Dlstat.test.js35 let fpath = await nextFileName('fileio_lstat_sync_000');
36 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 let stat = fileio.lstatSync(fpath);
41 expect(fileio.unlinkSync(fpath) == null).assertTrue();
59 let fpath = await nextFileName('fileio_lstat_sync_001');
62 fileio.lstatSync(fpath);
79 let fpath = await nextFileName('fileio_lstat_dev_000');
80 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
83 let stat = fileio.lstatSync(fpath);
85 expect(fileio.unlinkSync(fpath) == null).assertTrue();
[all …]
Dstat.test.js35 let fpath = await nextFileName('fileio_stat_sync_000');
36 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 let stat = fileio.statSync(fpath);
41 expect(fileio.unlinkSync(fpath) == null).assertTrue();
59 let fpath = await nextFileName('fileio_stat_sync_001');
62 fileio.statSync(fpath);
80 let fpath = await nextFileName('fileio_stat_sync_dev_000');
81 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
84 let stat = fileio.statSync(fpath);
86 expect(fileio.unlinkSync(fpath) == null).assertTrue();
[all …]
DcopyFile.test.js34 let fpath = await nextFileName('fileio_copy_file_sync_000');
35 let fpathTarget = fpath + 'tgt';
36 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 fileio.copyFileSync(fpath, fpathTarget);
41 fileio.unlinkSync(fpath);
59 let fpath = await nextFileName('fileio_copy_file_sync_001');
60 let fpathTarget = fpath + 'tgt';
61 let fd = fileio.openSync(fpath, 0o102, 0o666);
67 fileio.unlinkSync(fpath);
85 let fpath = await nextFileName('fileio_copy_file_sync_002');
[all …]
Dreadtext.test.js34 let fpath = await nextFileName('fileio_test_readtext_sync_000');
35 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
37 let str = fileio.readTextSync(fpath);
39 expect(fileio.unlinkSync(fpath) == null).assertTrue();
56 let fpath = await nextFileName('fileio_test_readtext_sync_001');
59 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
62 let str = fileio.readTextSync(fpath, { position: pos });
64 expect(fileio.unlinkSync(fpath) == null).assertTrue();
81 let fpath = await nextFileName('fileio_test_readtext_sync_002');
84 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
Dfstat.test.js34 let fpath = await nextFileName('fileio_stat_fstat_sync_000');
35 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
38 let fd = fileio.openSync(fpath, 0o2);
43 fileio.unlinkSync(fpath);
79 let fpath = await nextFileName('fileio_fstat_dev_000');
80 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
83 let fd = fileio.openSync(fpath);
87 expect(fileio.unlinkSync(fpath) == null).assertTrue();
104 let fpath = await nextFileName('fileio_fstat_ino_000');
105 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
Dtruncate.test.js34 let fpath = await nextFileName('fileio_truncate_async_000');
35 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 fileio.truncate(fpath, truncateLen, function (err) {
40 let fd = fileio.openSync(fpath, 0o2);
45 expect(fileio.unlinkSync(fpath) == null).assertTrue();
64 let fpath = await nextFileName('fileio_truncate_async_001');
65 expect(prepareFile(fpath, 'truncate')).assertTrue();
70 .truncate(fpath, truncateLen)
73 let fd = fileio.openSync(fpath, 0o2);
78 expect(fileio.unlinkSync(fpath) == null).assertTrue();
[all …]
/test/xts/acts/storage/storagefileiojstest/src/main/js/test/
DFileIOStat.test.js36 let fpath = await nextFileName('fileio_test_stat_stat_sync_000');
37 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 let stat = fileio.statSync(fpath);
41 fileio.unlinkSync(fpath);
55 let fpath = await nextFileName('fileio_test_stat_stat_sync_001');
57 fileio.statSync(fpath);
96 let fpath = dpath + '/f' + i;
97 fileio.statSync(fpath);
117 let fpath = await nextFileName('fileio_test_stat_dev_000');
118 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
DFileIOStream.test.js38 let fpath = await nextFileName('fileio_test_stream_create_stream_sync_000');
39 expect(prepareFile(fpath, 'hello')).assertTrue();
40 expect(fileToReadOnly(fpath)).assertTrue();
42 let ss = fileio.createStreamSync(fpath, 'r');
45 fileio.unlinkSync(fpath);
60 let fpath = await nextFileName('fileio_test_stream_create_stream_sync_001');
62 fileio.createStreamSync(fpath, 'r');
76 let fpath = await nextFileName('fileio_test_stream_create_stream_sync_002');
77 expect(prepareFile(fpath, '')).assertTrue();
78 expect(fileToWriteOnly(fpath)).assertTrue();
[all …]
DFileIO.test.js37 let fpath = await nextFileName('fileio_test_open_close_sync_000');
39 let fd = fileio.openSync(fpath, 0o102, 0o666);
42 fileio.unlinkSync(fpath);
56 let fpath = await nextFileName('fileio_test_open_000');
57 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
59 let fd = fileio.openSync(fpath, 0o202);
62 fileio.unlinkSync(fpath);
76 let fpath = await nextFileName('fileio_test_open_001');
77 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
79 let fd = fileio.openSync(fpath, 0o100, 0o001);
[all …]
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/members/
DcopyFile.test.js34 let fpath = await nextFileName('fileIO_copy_file_sync_000');
35 let fpathTarget = fpath + 'tgt';
36 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 fileIO.copyFileSync(fpath, fpathTarget);
40 let stat1 = fileIO.statSync(fpath);
43 fileIO.unlinkSync(fpath);
62 let fpath = await nextFileName('fileIO_copy_file_sync_001');
63 let fpathTarget = fpath + 'tgt';
64 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
67 let file = fileIO.openSync(fpath, fileIO.OpenMode.READ_WRITE);
[all …]
Dlstat.test.js35 let fpath = await nextFileName('fileIO_lstat_sync_000');
36 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 let stat = fileIO.lstatSync(fpath);
41 fileIO.unlinkSync(fpath);
59 let fpath = await nextFileName('fileIO_lstat_sync_001');
62 fileIO.lstatSync(fpath);
101 let fpath = await nextFileName('fileIO_lstat_ino_000');
102 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
104 let stat = fileIO.lstatSync(fpath);
106 fileIO.unlinkSync(fpath);
[all …]
Dreadtext.test.js34 let fpath = await nextFileName('fileIO_test_readtext_sync_000');
35 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
38 let str = fileIO.readTextSync(fpath);
40 fileIO.unlinkSync(fpath);
59 let fpath = await nextFileName('fileIO_test_readtext_sync_001');
60 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
63 let str = fileIO.readTextSync(fpath, { offset: 1 });
65 fileIO.unlinkSync(fpath);
83 let fpath = await nextFileName('fileIO_test_readtext_sync_002');
84 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
Drename.test.js35 let fpath = await nextFileName('fileIO_test_rename_sync_000');
36 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 let newf = fpath + 'test';
40 fileIO.renameSync(fpath, newf);
60 let fpath = await nextFileName('fileIO_test_rename_sync_001');
63 fileIO.renameSync(fpath, fpath + 'test');
82 let fpath = await nextFileName('fileIO_test_rename_sync_002');
83 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
86 fileIO.renameSync(fpath);
89 fileIO.unlinkSync(fpath);
[all …]
Dstat.test.js40 let fpath = await nextFileName('fileIO_stat_sync_000');
41 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
44 let stat = fileIO.statSync(fpath);
47 let file = fileIO.openSync(fpath);
51 fileIO.unlinkSync(fpath);
69 let fpath = await nextFileName('fileIO_stat_sync_001');
72 fileIO.statSync(fpath);
111 let fpath = await nextFileName('fileIO_stat_sync_ino_000');
112 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
115 let stat = fileIO.statSync(fpath);
[all …]
Dhash.test.js35 let fpath = await nextFileName('fileIO_test_hash_async_000');
36 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 let str = await fileHash.hash(fpath,'md5');
42 fileIO.unlinkSync(fpath);
61 let fpath = await nextFileName('fileIO_test_hash_async_001');
62 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
65 fileHash.hash(fpath, 'md5', (err, str) => {
72 fileIO.unlinkSync(fpath);
92 let fpath = await nextFileName('fileIO_test_hash_async_002');
93 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
DcreateStream.test.js34 let fpath = await nextFileName('fileIO_test_create_stream_sync_000');
35 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
36 let sr = fileIO.createStreamSync(fpath, 'r');
45 fileIO.unlinkSync(fpath);
62 let fpath = await nextFileName('fileIO_test_create_stream_sync_001');
65 fileIO.createStreamSync(fpath, 'r');
84 let fpath = await nextFileName('fileIO_test_create_stream_sync_002');
85 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
88 let sr = fileIO.createStreamSync(fpath, 'r+');
93 fileIO.unlinkSync(fpath);
[all …]
/test/xts/acts/storage/storagefileiojstest/src/main/js/test/module_fileio/class_stream/
Dall.test.js34 let fpath = await nextFileName('fileio_test_stream_create_stream_sync_000');
35 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
38 let ss = fileio.createStreamSync(fpath, 'r+');
41 fileio.unlinkSync(fpath);
58 let fpath = await nextFileName('fileio_test_stream_create_stream_sync_001');
61 fileio.createStreamSync(fpath, 'r+');
78 let fpath = await nextFileName('fileio_test_stream_create_stream_sync_002');
79 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
82 fileio.createStreamSync(fpath, 'ohos');
86 fileio.unlinkSync(fpath);
[all …]
Dread.test.js35 let fpath = await nextFileName('fileio_test_stream_read_sync_000');
36 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 let sr = fileio.createStreamSync(fpath, 'r+');
46 fileio.unlinkSync(fpath);
64 let fpath = await nextFileName('fileio_test_stream_read_sync_001');
65 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
68 let sr = fileio.createStreamSync(fpath, 'r+');
81 fileio.unlinkSync(fpath);
98 let fpath = await nextFileName('fileio_test_stream_read_async_000');
99 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
Dwrite.test.js35 let fpath = await nextFileName('fileio_test_stream_write_sync_000');
36 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 let sr = fileio.createStreamSync(fpath, 'r+');
48 fileio.unlinkSync(fpath);
66 let fpath = await nextFileName('fileio_test_stream_write_sync_001');
67 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
70 let sr = fileio.createStreamSync(fpath, 'r+');
87 fileio.unlinkSync(fpath);
104 let fpath = await nextFileName('fileio_test_stream_write_async_000');
105 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/class_file/
DfileLock.test.js34 let fpath = await nextFileName('fileIO_test_filelock_promise_000');
35 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
38 let file = fileIO.openSync(fpath, fileIO.OpenMode.READ_WRITE);
44 fileIO.unlinkSync(fpath);
63 let fpath = await nextFileName('fileIO_test_filelock_promise_001');
64 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
67 let file = fileIO.openSync(fpath, fileIO.OpenMode.READ_WRITE);
73 fileIO.unlinkSync(fpath);
92 let fpath = await nextFileName('fileIO_test_filelock_promise_002');
93 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/class_stream/
Dread.test.js34 let fpath = await nextFileName('fileIO_test_stream_read_sync_000');
35 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
38 let sr = fileIO.createStreamSync(fpath, 'r+');
45 fileIO.unlinkSync(fpath);
63 let fpath = await nextFileName('fileIO_test_stream_read_sync_001');
64 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
67 let sr = fileIO.createStreamSync(fpath, 'r+');
72 fileIO.unlinkSync(fpath);
90 let fpath = await nextFileName('fileIO_test_stream_read_sync_002');
91 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
Dwrite.test.js34 let fpath = await nextFileName('fileIO_test_stream_write_sync_000');
35 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
38 let sr = fileIO.createStreamSync(fpath, 'r+');
47 fileIO.unlinkSync(fpath);
65 let fpath = await nextFileName('fileIO_test_stream_write_sync_001');
66 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
69 let sr = fileIO.createStreamSync(fpath, 'r+');
74 fileIO.unlinkSync(fpath);
92 let fpath = await nextFileName('fileIO_test_stream_write_sync_002');
93 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/class_randomAccessFile/
Dread.test.js34 let fpath = await nextFileName('fileIO_randomaccessfile_read_sync_000');
35 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
38 let file = fileIO.openSync(fpath, fileIO.OpenMode.CREATE | fileIO.OpenMode.READ_WRITE);
48 fileIO.unlinkSync(fpath);
65 let fpath = await nextFileName('fileIO_randomaccessfile_read_sync_001');
66 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
69 …let randomaccessfile = fileIO.createRandomAccessFileSync(fpath, fileIO.OpenMode.CREATE | fileIO.Op…
77 fileIO.unlinkSync(fpath);
94 let fpath = await nextFileName('fileIO_randomaccessfile_read_sync_003');
95 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
[all …]
/test/xts/acts/storage/storagefileiojstest/src/main/js/test/module_fileio/class_watcher/
DcreateWatcher.test.js34 let fpath = await nextFileName('fileio_test_createWatcher_async_000');
35 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
39 let ob = await fileio.createWatcher(fpath, event, (err, data) => {
47 let after = fpath + 'yjz';
49 await fileio.rename(fpath, after);
72 let fpath = await nextFileName('fileio_test_createWatcher_async_001');
73 expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
77 let ob = await fileio.createWatcher(fpath, event, (err, data) => {
84 let fd = fileio.openSync(fpath, 0o2);
91 expect(fileio.unlinkSync(fpath) == null).assertTrue();
[all …]

12345