shell - How to check directory exist or not in linux.? - Stack Overflow
經安全檢測,此網站為安全網站,請放心前往原始網址!
shell - How to check directory exist or not in linux.? - Stack Overflow
With bash/sh/ksh, you can do: if [ ! -d /directory/to/check ]; then mkdir -p /directory/
toc/check fi. For files, replace -d with -f , then you can do ...