Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please implement mkdir -p /this/is/long/remote/path #146

Closed
amaxcz opened this issue Sep 20, 2015 · 1 comment
Closed

Please implement mkdir -p /this/is/long/remote/path #146

amaxcz opened this issue Sep 20, 2015 · 1 comment

Comments

@amaxcz
Copy link

amaxcz commented Sep 20, 2015

man mkdir says:

-p      Create intermediate directories as required.  If this option is not specified, the full path prefix of each operand must already exist.  On the other hand, with this
             option specified, no error will be reported if a directory given as an operand already exists.  Intermediate directories are created with permission bits of
             rwxrwxrwx (0777) as modified by the current umask, plus write and search permission for the owner.

But, currently its not comfortable works with ACD paths from bash scripts.. so

REMOTE_PATH="/Backup/somedir"

and next

if [ ! -z $REMOTE_PATH ]; then
REMOTE_DIRS=$(echo $REMOTE_PATH | sed 's#/$##' | awk -F "/" '{$1 = ""; print $0}' | xargs)
RPATH=""
for i in $REMOTE_DIRS; do
RPATH="$RPATH/$i"
acdcli --utf mkdir $RPATH  &> /dev/null
done

Please implement true way to make remote dirs with -p switch.
Thanks.

@AlexCzar
Copy link

+1

yadayada added a commit that referenced this issue Sep 25, 2015
Added ""--parents" argument to "create" action. Closes #146.

Misc:
 - unified RequestError logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants