Remove debugging console logs

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-01-31 09:10:23 -05:00
1 parent 9e1261b7f6
commit 1cc86fff11
1 file changed
-4
-4
View File
@@ -11,13 +11,10 @@ import path from "path";
* @param filePath The file path to wait until it exists
*/
export async function waitForPath(filePath: string): Promise<void> {
console.log("waiting for", filePath);
const dirOfPath = path.dirname(filePath);
if (dirOfPath === filePath) {
// The root of this filesystem, assume it exists
console.log("found", filePath);
return;
} else {
await waitForPath(dirOfPath);
@@ -28,7 +25,6 @@ export async function waitForPath(filePath: string): Promise<void> {
depth: 0,
}).on("all", (event, path) => {
if ((event === "add" || event === "addDir") && path === filePath) {
console.log("found", filePath);
resolve();
}
});