sub check_dir_is_writeable { -d $_ && -w $_ && -x $_ }