diff options
Diffstat (limited to 'drive')
| -rw-r--r-- | drive/sync.go | 5 |
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 { |
