summaryrefslogtreecommitdiff
path: root/cli/js/ops/fs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/ops/fs')
-rw-r--r--cli/js/ops/fs/open.ts2
-rw-r--r--cli/js/ops/fs/stat.ts8
-rw-r--r--cli/js/ops/fs/utime.ts4
3 files changed, 7 insertions, 7 deletions
diff --git a/cli/js/ops/fs/open.ts b/cli/js/ops/fs/open.ts
index 87696935f..b587f491d 100644
--- a/cli/js/ops/fs/open.ts
+++ b/cli/js/ops/fs/open.ts
@@ -36,6 +36,6 @@ export function open(
path,
options,
openMode,
- mode
+ mode,
});
}
diff --git a/cli/js/ops/fs/stat.ts b/cli/js/ops/fs/stat.ts
index 20ca3e6b1..f455484c1 100644
--- a/cli/js/ops/fs/stat.ts
+++ b/cli/js/ops/fs/stat.ts
@@ -25,7 +25,7 @@ export interface StatResponse {
export async function lstat(path: string): Promise<FileInfo> {
const res = (await sendAsync("op_stat", {
path,
- lstat: true
+ lstat: true,
})) as StatResponse;
return new FileInfoImpl(res);
}
@@ -33,7 +33,7 @@ export async function lstat(path: string): Promise<FileInfo> {
export function lstatSync(path: string): FileInfo {
const res = sendSync("op_stat", {
path,
- lstat: true
+ lstat: true,
}) as StatResponse;
return new FileInfoImpl(res);
}
@@ -41,7 +41,7 @@ export function lstatSync(path: string): FileInfo {
export async function stat(path: string): Promise<FileInfo> {
const res = (await sendAsync("op_stat", {
path,
- lstat: false
+ lstat: false,
})) as StatResponse;
return new FileInfoImpl(res);
}
@@ -49,7 +49,7 @@ export async function stat(path: string): Promise<FileInfo> {
export function statSync(path: string): FileInfo {
const res = sendSync("op_stat", {
path,
- lstat: false
+ lstat: false,
}) as StatResponse;
return new FileInfoImpl(res);
}
diff --git a/cli/js/ops/fs/utime.ts b/cli/js/ops/fs/utime.ts
index 13cac8cb6..cd195531c 100644
--- a/cli/js/ops/fs/utime.ts
+++ b/cli/js/ops/fs/utime.ts
@@ -14,7 +14,7 @@ export function utimeSync(
path,
// TODO(ry) split atime, mtime into [seconds, nanoseconds] tuple
atime: toSecondsFromEpoch(atime),
- mtime: toSecondsFromEpoch(mtime)
+ mtime: toSecondsFromEpoch(mtime),
});
}
@@ -27,6 +27,6 @@ export async function utime(
path,
// TODO(ry) split atime, mtime into [seconds, nanoseconds] tuple
atime: toSecondsFromEpoch(atime),
- mtime: toSecondsFromEpoch(mtime)
+ mtime: toSecondsFromEpoch(mtime),
});
}