@gyran/google-drive-incomplete-folder-sync
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -12,3 +12,3 @@ #!/usr/bin/env node | ||
// config.clear(); | ||
config.clear(); | ||
@@ -93,5 +93,8 @@ const setupAuth = async () => { | ||
for (const file of filesListResponse.data.files) { | ||
console.log('syncing file', file); | ||
if (file.capabilities.canListChildren) { | ||
await syncDriveFolder(file.id, nodePath.join(currentPath, file.name)); | ||
} else if (file.capabilities.canDownload) { | ||
console.log('will download', file.name); | ||
await downloadDriveFile( | ||
@@ -144,3 +147,3 @@ file.id, | ||
const deleteDriveFile = async (fileId) => { | ||
const a = await drive.files.delete({ fileId }); | ||
await drive.files.delete({ fileId }); | ||
}; | ||
@@ -165,2 +168,3 @@ | ||
console.log('will delete drive file', fileId, drivePath); | ||
await deleteDriveFile(fileId); | ||
@@ -184,2 +188,3 @@ } | ||
console.log('Waiting for next loop'); | ||
await delay(intervalMs); | ||
@@ -186,0 +191,0 @@ } |
{ | ||
"name": "@gyran/google-drive-incomplete-folder-sync", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "very simple and naive incomplete folder sync with google drive for my personal use", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7405
229