2014-07-02 18:51:59 +02:00
|
|
|
d=$(dirname $0)/
|
|
|
|
if test -d data; then
|
|
|
|
chmod 777 data/*
|
|
|
|
chmod -R 777 data/
|
|
|
|
fi
|
2010-09-11 19:48:54 +02:00
|
|
|
|
2010-05-21 03:13:36 +02:00
|
|
|
rm -rf data
|
|
|
|
mkdir -p data
|
|
|
|
|
|
|
|
touch data/file
|
|
|
|
mkdir data/dir
|
|
|
|
|
|
|
|
touch data/file_access_denied
|
|
|
|
chmod 000 data/file_access_denied
|
|
|
|
|
|
|
|
touch data/file_read_only
|
|
|
|
chmod 444 data/file_read_only
|
|
|
|
|
|
|
|
|
|
|
|
mkdir data/dir_access_denied
|
|
|
|
chmod 000 data/dir_access_denied
|
|
|
|
|
|
|
|
mkdir data/dir_read_only
|
|
|
|
chmod 444 data/dir_read_only
|
|
|
|
|
2014-07-05 06:21:35 +02:00
|
|
|
echo '{"Video" : ["Entry One", "Entry Two"]}' > data/mru_ok.json
|
2010-05-21 03:13:36 +02:00
|
|
|
|
2014-07-05 06:21:35 +02:00
|
|
|
echo '{"Video" : [1, 3]}' > data/mru_invalid.json
|
2010-05-21 03:13:36 +02:00
|
|
|
|
2013-02-02 15:44:13 +01:00
|
|
|
printf %s '1234567890' > data/ten_bytes
|
2014-07-03 02:42:50 +02:00
|
|
|
touch -r $0 data/touch_mod_time
|
2010-05-21 03:13:36 +02:00
|
|
|
|
2011-12-22 22:11:10 +01:00
|
|
|
mkdir data/options
|
2014-07-02 18:51:59 +02:00
|
|
|
cp $d/options/* data/options
|
2010-07-07 07:24:16 +02:00
|
|
|
|
2013-02-02 15:44:13 +01:00
|
|
|
mkdir data/dir_iterator
|
|
|
|
touch data/dir_iterator/1.a
|
|
|
|
touch data/dir_iterator/2.a
|
|
|
|
touch data/dir_iterator/1.b
|
|
|
|
touch data/dir_iterator/2.b
|
|
|
|
|
2010-07-07 07:24:16 +02:00
|
|
|
mkdir data/vfr
|
|
|
|
mkdir data/vfr/in
|
|
|
|
mkdir data/vfr/out
|
2014-07-02 18:51:59 +02:00
|
|
|
cp $d/vfr/* data/vfr/in/
|
2010-12-31 22:02:31 +01:00
|
|
|
|
|
|
|
mkdir data/keyframe
|
2014-07-02 18:51:59 +02:00
|
|
|
cp $d/keyframe/* data/keyframe
|