From d4d0b5d90c8abc5867a389129ee185b2c1cf0f0f Mon Sep 17 00:00:00 2001 From: dubiousjim Date: Tue, 31 Mar 2020 13:46:25 -0400 Subject: Properly track isFile, isSymlink, isDirectory (#4541) * Properly track isFile, isSymlink, isDirectory These don't exhaust all the possibilities, so none of them should be defined as "neither of the others". * empty --- cli/ops/fs.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/ops') diff --git a/cli/ops/fs.rs b/cli/ops/fs.rs index 493bd31e4..c076b2b24 100644 --- a/cli/ops/fs.rs +++ b/cli/ops/fs.rs @@ -509,6 +509,7 @@ fn get_stat_json( use std::os::unix::fs::MetadataExt; let mut json_val = json!({ "isFile": metadata.is_file(), + "isDirectory": metadata.is_dir(), "isSymlink": metadata.file_type().is_symlink(), "size": metadata.len(), // In seconds. Available on both Unix or Windows. -- cgit v1.2.3