UNPKG

google-photos-migrate

Version:

A tool to fix EXIF data and recover filenames from a Google Photos takeout.

15 lines (14 loc) 384 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isDir = isDir; const promises_1 = require("fs/promises"); async function isDir(path) { try { const stat = await (0, promises_1.lstat)(path); return stat.isDirectory(); } catch (e) { // lstatSync throws an error if path doesn't exist return false; } }