X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;ds=sidebyside;f=move_videos_from_watchdir;h=364ade6575180ba5644e87ada1a9ba7db8f0238d;hb=26e29c4b2a1ba5181b379a64c86f4d521d77dcf7;hp=83ec63fa50364c5678fba0cfd491a957f8da6c77;hpb=3574551ce37f9611e12420e4b39d4e68dd20c884;p=videoscripts%2F.git diff --git a/move_videos_from_watchdir b/move_videos_from_watchdir index 83ec63f..364ade6 100755 --- a/move_videos_from_watchdir +++ b/move_videos_from_watchdir @@ -78,6 +78,12 @@ foreach $watchpath (split(';', $watchpathname)) { $srcfile = $file; $dstfile = "$dstpathname/$file"; + # Make sure srcdir is group writable + if(not -w "$srcdir") { + print "-W- srcdir is not group writable, can't move videos out of it: $srcdir\n"; + next; + } + # Make sure we have a unique dstfile if(-f "$dstfile") { $video_ext = $srcfile;