Merge lp://qastaging/~gesha/linaro-license-protection/fix-dir-sanitizing into lp://qastaging/~linaro-automation/linaro-license-protection/trunk

Proposed by Georgy Redkozubov
Status: Merged
Merged at revision: 124
Proposed branch: lp://qastaging/~gesha/linaro-license-protection/fix-dir-sanitizing
Merge into: lp://qastaging/~linaro-automation/linaro-license-protection/trunk
Diff against target: 30 lines (+10/-8)
1 file modified
scripts/publish_to_snapshots.py (+10/-8)
To merge this branch: bzr merge lp://qastaging/~gesha/linaro-license-protection/fix-dir-sanitizing
Reviewer Review Type Date Requested Status
Deepti B. Kalakeri (community) Approve
Review via email: mp+121703@code.qastaging.launchpad.net

Description of the change

This branch fixes sanitizing of dir with subdirs.
Previously it worked only with files in dir and failed on first found subdir with following error: In main() Exception details: [Errno 21] Is a directory: '/srv/staging.snapshots.linaro.org/uploads/android/gesha_staging-publishing-test/7/target'
Now recursion works correctly.

To post a comment you must log in.
Revision history for this message
James Tunnicliffe (dooferlad) wrote :

Do you want os.makedirs rather than os.mkdir (it is more like mkdir -p)?

Revision history for this message
Deepti B. Kalakeri (deeptik) wrote :

Looks good. +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches