← Back to team overview

duplicity-team team mailing list archive

Re: [Bug 393372] [NEW] Error creating directory

 

> I propose to change mkdir with makedirs in path.py to address this
> problem. The attached patch does this.

Sounds sensible to me. The only downside I can see is that in cases
where this is not actually expected, we would be more susceptible to
silent failure. That is, some kind of internal inconsistency could be
missed, and a directory would be created with potentially incorrect
permissions.

That said, I don't have an objection as long as we have no reason to
believe that code specifically relies on the current behavior.

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@xxxxxxxxxxxx>'
Key retrieval: Send an E-Mail to getpgpkey@xxxxxxxxx
E-Mail: peter.schuller@xxxxxxxxxxxx Web: http://www.scode.org

-- 
Error creating directory
https://bugs.launchpad.net/bugs/393372
You received this bug notification because you are a member of
duplicity-team, which is subscribed to duplicity.

Status in duplicity - Bandwidth Efficient Encrypted Backup: New

Bug description:
Duplicity v0.6.00
Python 2.6.2+
Ubuntu 9.04
[This is an enhancement, not a bug, therefore I did not submit the whole "-v9" log.]

Hello,

I like to use duplicity to restore a subtree of the backup folder, while restoring the whole path which leads to it. More exactly, I want to run something like:

/home/cristi/.local/bin/duplicity -vINFO --use-agent --file-to-restore Wallet/papers sftp://backup-1/encbackup Wallet/papers

but this doesn't work because:

Making directory Wallet/papers
Error '('Error creating directory Wallet/papers', 7)' processing .
Skipping blah because of previous error

I propose to change mkdir with makedirs in path.py to address this problem. The attached patch does this.



References