After importing files via ContentHub files won't be deleted
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Ubuntu Music App |
Medium
|
Andrew Hayzen | ||
| | content-hub |
Invalid
|
Undecided
|
Unassigned | |
Bug Description
After importing music (.zip from 7digital) via content hub, the files will be stored in ~/Music/... but the unzipped files are not deleted in ~/.cache/
The .zip seems to be, though.
This results in using twice the space that is needed.
Or is there an intention to keep them?
It would be even better to be able to change the standard import path from /Music/ to e.g. a directory on the sd-card.
Related branches
- Victor Thompson: Approve on 2015-06-30
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration) on 2015-06-30
-
Diff: 21 lines (+4/-1)1 file modifiedapp/components/Helpers/ContentHubHelper.qml (+4/-1)
| Andrew Hayzen (ahayzen) wrote : | #1 |
| Andrew Hayzen (ahayzen) wrote : | #2 |
After further discussion with the content-hub guys, I've found that this gets cleared currently upon a reboot of the system (I've confirmed this works) and that we are not setting a property after we are done with the files which can tell content-hub to clean them up then.
Therefore I am marking this bug as invalid for content-hub, and assigning myself to fix the missing property set once the transfer is complete.
| Changed in content-hub: | |
| status: | New → Invalid |
| Changed in music-app: | |
| status: | New → In Progress |
| importance: | Undecided → Medium |
| assignee: | nobody → Andrew Hayzen (ahayzen) |
Fix committed into lp:music-app at revision 878, scheduled for release in music-app, milestone 3.0
| Changed in music-app: | |
| status: | In Progress → Fix Committed |
| Changed in music-app: | |
| status: | Fix Committed → Fix Released |


Thank you for taking the time to report this bug and helping to make Ubuntu better.
The way this works currently is content-hub puts them into ~/.cache/ com.ubuntu. music/HubIncomi ng/ for us and then we call a content-hub method to move them into ~/Music/Imported/*, however this method sometimes fails to move the file and falls back to using a copy.
Therefore I suppose it should actually remove the file if a copy was used [0] and I am adding content-hub to this bug.
0 - http:// bazaar. launchpad. net/~phablet- team/content- hub/trunk/ view/head: /import/ Ubuntu/ Content/ contentitem. cpp#L227