aboutsummaryrefslogtreecommitdiffstats
path: root/drive/sync.go
diff options
context:
space:
mode:
Diffstat (limited to 'drive/sync.go')
-rw-r--r--drive/sync.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/drive/sync.go b/drive/sync.go
index a0d90a2..c8396c1 100644
--- a/drive/sync.go
+++ b/drive/sync.go
@@ -69,6 +69,11 @@ func prepareLocalFiles(root string) ([]*localFile, error) {
return nil
}
+ // Skip files that are not a directory or regular file
+ if !info.IsDir() && !info.Mode().IsRegular() {
+ return nil
+ }
+
// Get relative path from root
relPath, err := filepath.Rel(absRootPath, absPath)
if err != nil {