Added CopyFiles
This commit is contained in:
parent
79d8e62d20
commit
0e0b52cb3e
@ -127,6 +127,17 @@ ConvertFiles() {
|
|||||||
done < "/tmp/music-sync-filelist"
|
done < "/tmp/music-sync-filelist"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CopyFiles() {
|
||||||
|
while read -r line
|
||||||
|
do
|
||||||
|
VerboseOutput "Info" "Copy $line"
|
||||||
|
if [[ "$dest/$line" = */* ]]; then
|
||||||
|
mkdir -p "$dest/${line%/*}";
|
||||||
|
fi;
|
||||||
|
cp -f $source/$line $dest/$line # 1>/dev/null 2>/dev/null
|
||||||
|
done < "/tmp/music-sync-filelist"
|
||||||
|
}
|
||||||
|
|
||||||
GetOptions $@
|
GetOptions $@
|
||||||
if [[ "$help" == true ]]; then
|
if [[ "$help" == true ]]; then
|
||||||
Usage
|
Usage
|
||||||
@ -134,3 +145,4 @@ if [[ "$help" == true ]]; then
|
|||||||
fi
|
fi
|
||||||
CreateFileList $source $dest ""
|
CreateFileList $source $dest ""
|
||||||
ConvertFiles
|
ConvertFiles
|
||||||
|
CopyFiles
|
Loading…
Reference in New Issue
Block a user