Open zrzka opened 6 years ago
Removed enhancement
& minor
and added bug
. Looks like more serious issue. Try to do this:
blackmamba
for example)blackmamba/test.txt
blackmamba/.test.txt.icloud
- okblackmamba/.test.txt.icloud
is backBasically when I trash file from EXTERNAL FILES folder, the file is reappearing no matter what I do. It reappears only & only when I kill Pythonista & launch fresh instance. When the Pythonista is not killed, everything's okay.
As a workaround, I have to use .gitignore.
System Information
Affects
Pythonista >= 3.2 & iOS 11 only.
Description
Prior iOS 11, there was no issue with trashing files. But since we have features like Open in place... now, trashed file behavior should be rethinked? It's more like usability issue. Try this:
new_tab.py
in my case)new_tab.py
is gone, but there's new file named.new_tab.py.icloud
, which is treated like any other regular file by Working Copy - addedTo fix this, I have to trash file in Pythonista and then empty trash to get rid of this file. Basically it forces more to do more than just simple swipe & trash.
Expected behavior
I would expect that when I trash file in Pythonista the file disappears from same folder and no new file is introduced in the same location. Just to avoid clashes with other applications.
iOS 11 introduced
NSTrashDirectory
, tried it, but it returns nothing (simulator, didn't try it on device). ProbablyNSCachesDirectory
can be used? But this directory isn't part of the backup process. So, if backup is required for trashed files,NSDocumentDirectory
should be used.Maybe
.Trash-iCloud
,.Trash-bookmark
can be introduced? When I trash file:This iPad
->.Trash
iCloud
->.Trash-iCloud
EXTERNAL FILES
->.Trash-bookmark
.Just thinking aloud, marked as minor, but still thinks that this should be addressed somehow.