MV Func file_size()
This commit is contained in:
@ -144,15 +144,6 @@ function db_query() {
|
||||
echo $@ | mysql $args
|
||||
}
|
||||
|
||||
# file_size <path> -> (du -b)/1024 [Kb]
|
||||
function file_size() {
|
||||
if [ -f "$1" ]; then
|
||||
echo $(($(du -b "$1" | cut -f 1)/1024))
|
||||
else
|
||||
echo 0
|
||||
fi
|
||||
}
|
||||
|
||||
case "$mode" in
|
||||
"a") #in_add
|
||||
md5_in_add
|
||||
|
Reference in New Issue
Block a user