IO-1931 Remove thumbs.db from listing.
This commit is contained in:
8
util/listableChecker.ts
Normal file
8
util/listableChecker.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import fs from "fs-extra";
|
||||
|
||||
function ListableChecker(file: fs.Dirent) {
|
||||
if (file.name === "Thumbs.db") return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export default ListableChecker;
|
||||
Reference in New Issue
Block a user