-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmk_workspace.sh
executable file
·34 lines (27 loc) · 974 Bytes
/
mk_workspace.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/zsh
if [ $# -gt 0 ]; then
dir_path=$1
else
dir_path=${HOME}
fi
echo $dir_path
#1) make folders of drop_landing workspace, dataset folder and result folder
result_folder="$dir_path/drop_landing_workspace/results/training_testing"
dataset_folder="$dir_path/drop_landing_workspace/"
if [[ ! -d $result_folder ]]; then
mkdir -p $result_folder
fi
if [[ ! -d $dataset_folder ]]; then
mkdir -p $dataset_folder
fi
#2) copy dataset to drop landing workspace dataset folder
remote_rawdataset_folder="/mnt/drop_landing_workspace/data/"
local_1_rawdataset_folder="/media/sun/DATA/drop_landing_workspace/data/"
if [[ -d $remote_rawdataset_folder ]]; then
cp -r "/mnt/drop_landing_workspace/data/" $dataset_folder
elif [[ -d $local_1_rawdataset_folder ]]; then
cp -r "/media/sun/DATA/drop_landing_workspace/data/" $dataset_folder
else
cp -r "/media/sun/My\ Passport/drop_landing_workspace/data/" $dataset_folder
fi
export MEDIA_NAME="$dir_path"