不是直接检查目录的权限而是创建一个符号链接来测试该目录是否可写
writeable(){
if ln -s test-link $1/.is-wirteable 2> /dev/null; then
rm -f $1/.is-writeable
return 0
else
return 1;
fi
}
不是直接检查目录的权限而是创建一个符号链接来测试该目录是否可写
writeable(){
if ln -s test-link $1/.is-wirteable 2> /dev/null; then
rm -f $1/.is-writeable
return 0
else
return 1;
fi
}