adding create events
This commit is contained in:
parent
f6a6157e4e
commit
5553b29f95
|
@ -77,7 +77,7 @@ synccycle &
|
|||
|
||||
# exclude swp,swpx and 4913 files created by vim
|
||||
# inotifywait -m -r -e close_write -e move -e delete --exclude "\.swp|\.swx|4913|.txt~" ~/googleDrive/Copy/Appunti/
|
||||
inotifywait -m -r -e close_write -e move -e delete --exclude "\.swp|\.swx|4913|.txt~" $LOCALPATH | while read dir action file; do
|
||||
inotifywait -m -r -e create -e close_write -e move -e delete --exclude "\.swp|\.swx|4913|.txt~" $LOCALPATH | while read dir action file; do
|
||||
if [ $action = 'DELETE' ] || [ $action = 'DELETE,ISDIR' ]; then
|
||||
echo "Enqueue delete: $dir$file"
|
||||
echo $dir$file | sed -e "s~$LOCALPATH~$REMOTERELATIVEPATH~g" | tee -a ${TMPQUEUEDELETES}
|
||||
|
|
Loading…
Reference in New Issue