Last active
May 16, 2021 03:10
-
-
Save wilbeibi/57e63d59ee8446d579e879c8324ba36e to your computer and use it in GitHub Desktop.
Revisions
-
wilbeibi revised this gist
May 16, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ -- Ignore generated target/ in certain Dropbox folders. function igonreWater(paths, flags) for idx, path in pairs(paths) do if path:sub(-6) == "target" and flags[idx].itemIsDir == true and flags[idx].itemRenamed == true and flags[idx].itemXattrMod ~= true then print("Ignoring" .. path) hs.execute(string.format("xattr -w com.dropbox.ignored 1 '%s'", path)) end -
wilbeibi revised this gist
May 14, 2021 . No changes.There are no files selected for viewing
-
wilbeibi revised this gist
May 14, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,4 @@ function igonreWater(paths, flags) end end local dropboxWatcher = hs.pathwatcher.new(os.getenv("HOME") .. "/Dropbox/blabla/RustRepos/", igonreWater):start() -
wilbeibi created this gist
May 14, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ -- Ignore generated target/ in certain Dropbox folders. function igonreWater(paths, flags) for idx, path in pairs(paths) do if path:sub(-6) == "target" and flags[idx].itemIsDir == true then print("Ignoring" .. path) hs.execute(string.format("xattr -w com.dropbox.ignored 1 '%s'", path)) end end end local dropboxWatcher = hs.pathwatcher.new(os.getenv("HOME") .. "/Dropbox/some/RustRepos/", igonreWater):start()