Skip to content

Commit

Permalink
Seperate images by day captured
Browse files Browse the repository at this point in the history
  • Loading branch information
marek committed Jun 23, 2013
1 parent 6cabfc5 commit ae55d56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upload_loop.sh
Expand Up @@ -13,7 +13,8 @@ while true; do

for FILEPATH in $DIR/*.jpg; do
FILE=$(basename $FILEPATH)
$HOME/dropbox_uploader.sh upload $FILEPATH "MotionUploader/$FILE"
DATE=$(stat -c %y $FILEPATH | awk '{ print $1 }')
$HOME/dropbox_uploader.sh upload $FILEPATH "MotionUploader/$DATE/$FILE"
rm -f $FILEPATH
done

Expand Down

0 comments on commit ae55d56

Please sign in to comment.