gdrive-syncer 3.1.4 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/envSync.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdrive-syncer",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "Google Drive Syncer",
5
5
  "main": "./index.js",
6
6
  "bin": "./run.js",
package/src/envSync.js CHANGED
@@ -1316,7 +1316,7 @@ const runSyncOperation = async (syncConfig, action, projectRoot, backupPath, con
1316
1316
  // Each isolated dir contains exactly one file (the downloaded file with its Drive name)
1317
1317
  const missingFiles = [];
1318
1318
  for (const dl of downloads) {
1319
- const files = fs.readdirSync(dl.isolatedPath).filter((f) => !f.startsWith('.'));
1319
+ const files = fs.readdirSync(dl.isolatedPath).filter((f) => f !== '.' && f !== '..' && f !== '.DS_Store');
1320
1320
  if (files.length === 0) {
1321
1321
  missingFiles.push(dl.relativePath);
1322
1322
  continue;