|
|
@ -347,12 +347,22 @@ extendedTest()
|
|
|
|
# real_path - report the absolute path to a file
|
|
|
|
# real_path - report the absolute path to a file
|
|
|
|
real_path ()
|
|
|
|
real_path ()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if [ "$PLATFORM" == "Darwin" ]; then
|
|
|
|
|
|
|
|
if [ -d "$1" ]; then
|
|
|
|
|
|
|
|
cd "$1"
|
|
|
|
|
|
|
|
echo $PWD
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
cd $(dirname $1)
|
|
|
|
|
|
|
|
echo "$PWD"/$(basename "$1")
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
which realpath 2>/dev/null >/dev/null
|
|
|
|
which realpath 2>/dev/null >/dev/null
|
|
|
|
if [ $? == 0 ]; then
|
|
|
|
if [ $? == 0 ]; then
|
|
|
|
realpath "$1"
|
|
|
|
realpath "$1"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
readlink -f "$1"
|
|
|
|
readlink -f "$1"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
copyVideoFiles ()
|
|
|
|
copyVideoFiles ()
|
|
|
|