Lines Matching refs:await
99 await copyFile(fixtures.path('baz.js'), dest);
100 await access(dest);
108 handle = await getHandle(dest);
109 await func(handle);
112 await handle.close();
125 await executeOnHandle(dest, async (handle) => {
132 await executeOnHandle(dest, async (handle) => {
133 let stats = await handle.stat();
137 await handle.truncate(1);
139 stats = await handle.stat();
143 stats = await stat(dest);
146 stats = await handle.stat();
149 await handle.datasync();
150 await handle.sync();
156 const statFs = await statfs(dest);
162 const statFs = await statfs(dest, { bigint: true });
169 await executeOnHandle(dest, async (handle) => {
172 await handle.write(buf);
173 const ret = await handle.read(Buffer.alloc(bufLen), 0, 0, 0);
176 await unlink(dest);
182 await executeOnHandle(dest, async (handle) => {
183 const ret = await handle.read(0, 0, 0, 0);
190 await executeOnHandle(dest, async (handle) => {
193 await handle.write(buf);
194 const ret = await handle.read(Buffer.alloc(bufLen), 0, bufLen, 0);
202 await executeOnHandle(dest, async (handle) => {
205 await handle.write(buf, 0, bufLen, 0);
206 const ret = await handle.read(Buffer.alloc(bufLen), 0, bufLen, 0);
209 await truncate(dest, 5);
210 assert.strictEqual((await readFile(dest)).toString(), 'hello');
216 await executeOnHandle(dest, async (handle) => {
217 await chmod(dest, 0o666);
218 await handle.chmod(0o666);
220 await chmod(dest, (0o10777));
221 await handle.chmod(0o10777);
224 await chown(dest, process.getuid(), process.getgid());
225 await handle.chown(process.getuid(), process.getgid());
228 await assert.rejects(
230 await chown(dest, 1, -2);
239 await assert.rejects(
241 await handle.chown(1, -2);
254 await executeOnHandle(dest, async (handle) => {
256 await utimes(dest, new Date(), new Date());
259 await handle.utimes(new Date(), new Date());
277 await lutimes(dest, a_time, m_time);
278 const stats = await stat(dest);
287 await rename(dest, newPath);
288 let stats = await stat(newPath);
293 await symlink(newPath, newLink);
295 await lchown(newLink, process.getuid(), process.getgid());
297 stats = await lstat(newLink);
301 (await realpath(newLink)).toLowerCase());
303 (await readlink(newLink)).toLowerCase());
308 await lchmod(newLink, newMode);
309 stats = await lstat(newLink);
312 await Promise.all([
324 await unlink(newLink);
331 await symlink(tmpDir, dir, 'dir');
332 const stats = await lstat(dir);
334 await unlink(dir);
341 await link(newPath, newLink);
343 await unlink(newLink);
351 await mkdir(newDir);
352 await writeFile(newFile, 'DAWGS WIN!', 'utf8');
354 const stats = await stat(newDir);
356 const list = await readdir(tmpDir);
359 await rmdir(newDir);
360 await unlink(newFile);
366 await writeFile(newFile, 'dogs running', { encoding: null });
374 await mkdir(dir, 777);
375 const stats = await stat(dir);
382 await mkdir(dir, '777');
383 const stats = await stat(dir);
390 await mkdir(dir, { recursive: true });
391 const stats = await stat(dir);
398 await mkdir(path.dirname(dir));
399 await writeFile(dir, '');
415 await mkdir(path.dirname(file));
416 await writeFile(file, '');
431 await mkdir(dir, { recursive: true });
432 const stats = await stat(dir);
439 await mkdir(dir, { recursive: true });
440 const stats = await stat(dir);
462 await mkdtemp(path.resolve(tmpDir, 'FOO'));
475 await executeOnHandle(dest, async (handle) => {
476 await assert.rejects(
484 const ret = await handle.write('abcd', 0, 'hex');
491 await executeOnHandle(dest, async (handle) => {
492 await assert.rejects(() => handle.stat.call({}), {