14 Commits

Author SHA1 Message Date
Saagar Jha 76fb5dbf53 Fix handing for security-scoped URLs from picker
Apparently the API for these is a bit weird, first you call the
startAccessingSecurityScopedResource method and it returns whether the
URL is security scoped, and if so, it will give you access. In our case
we don't care, we just want access. Once you're done and the method
returns YES you are required to use stopAccessingSecurityScopedResource
to relinquish kernel resources, but the documentation states that this
is a no-op on anything you don't own so we can just call it on all URLs
unconditionally.
2022-09-03 19:13:17 -07:00
Theodore Dubois 4da613ec1b Revert "Fix handing for security-scoped URLs from picker"
This reverts commit 112a14242d.

@jasonconway reported an issue with root imports not working at all
because startAccessingSecurityScopedResource returned false. This is\
also missing error reports if error ends up as nil.
2022-09-03 16:52:16 -07:00
Saagar Jha 112a14242d Fix handing for security-scoped URLs from picker 2022-09-02 00:00:10 -07:00
Theodore Dubois cb10197c3d Merge pull request #1038 from ish-app/kvo 2020-11-14 17:51:54 -08:00
Theodore Dubois 69b6852686 Build a new and better block-based KVO API
Fixes #1046
2020-11-14 16:49:55 -08:00
Theodore Dubois d420146af8 Fixes for root renaming
Block attempts at directory traversal, always show clear button.
2020-11-14 12:26:19 -08:00
Theodore Dubois a36ddff6ce Automatically remove KVO observers on dealloc 2020-11-13 21:41:16 -08:00
Saagar Jha 4ba3852d9c Use viewDidLoad over awakeFromNib for KVO init
awakeFromNib can potentially be called multiple times; in our case twice
because it needs to load the view controller and then the file owner,
which is the view controller again. viewDidLoad is called once.

Also, remove a duplicate segue.
2020-10-25 16:42:56 -07:00
Theodore Dubois fba8a02afe Allow renaming filesystems 2020-09-26 20:25:39 -07:00
Theodore Dubois 2f28e6a529 Add cancel buttons for import and export 2020-06-19 09:46:07 -07:00
Theodore Dubois f6ecb80e4a Add progress bars for import/export 2020-06-19 09:13:20 -07:00
Theodore Dubois ff40a94fc3 Add fakefs exporting
Todo:
- Make sure the result can actually be imported
- Progress indicator
- Hardlinks
- File timestamps
2020-06-18 10:16:44 -07:00
Theodore Dubois 82fda42b77 Add button to browse a root in Files 2020-06-18 00:19:00 -07:00
Theodore Dubois a7c910761a Add filesystem management
#695
2020-06-17 10:04:03 -07:00