omz / Pythonista-Issues

Issue tracker for Pythonista (iOS)
169 stars 14 forks source link

Trashed files & bookmarks & other applications like Working Copy #519

Open zrzka opened 6 years ago

zrzka commented 6 years ago

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:

To 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.

91b7fb76-1050-4cef-84e7-8f6befae7b39

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). Probably NSCachesDirectory 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:

Just thinking aloud, marked as minor, but still thinks that this should be addressed somehow.

zrzka commented 6 years ago

Removed enhancement & minor and added bug. Looks like more serious issue. Try to do this:

Basically 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.

ff011bb5-6502-42c9-a4e2-a4af88a838d3

zrzka commented 6 years ago

As a workaround, I have to use .gitignore.