Skip to content

Commit

Permalink
Check for readable instead of exists
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorgalvao committed Mar 11, 2022
1 parent f9e77fd commit 98966e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Workflow/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,6 @@ while IFS= read -r gdrive_path; do
if [[ -d "${absolute_path}" ]]; then
echo "Exists: ${gdrive_path}"
du -hs "${absolute_path}" | tr -d ' ' | sed 's/\t.*//'
find "${absolute_path}" | wc -l | tr -d ' \n'
echo ' paths'
else
Expand Down Expand Up @@ -1319,7 +1318,7 @@ The Workflow Environment Variables have defaults which will work for most. You o
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>2022.8</string>
<string>2022.9</string>
<key>webaddress</key>
<string>https://github.com/alfredapp/google-drive-workflow/</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Workflow/rebuild_cache
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ db.execute('CREATE TABLE main (fullpath TEXT, basename TINYTEXT, isdir BOOLEAN,

Gdrive_paths.each do |gdrive_path|
gdrive_path.find.lazy.each do |path|
Find.prune unless path.exist?
Find.prune unless path.readable?
next if path.symlink?
next if Ignores.any? { |i| path.fnmatch?("*#{i}*") }

Expand Down

0 comments on commit 98966e7

Please sign in to comment.