-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] New FileSystem API #5310
Comments
Comment by iwehrman Reminder to self: remove the Dropbox impl. |
Comment by iwehrman Finished with my first pass. |
Comment by iwehrman I think the only unresolved issues are 1) whether we do, in fact, want |
Comment by iwehrman And 3) the proposed tweak to the |
Comment by gruehle Here are my thoughts:
If there was a stat error for an entry, that entry is not included in Thoughts? |
Comment by iwehrman Alternate proposal for 3)
Why this might be better:
|
Comment by gruehle
|
Comment by iwehrman Oh, right. Retracted! |
Comment by iwehrman I'm implementing your proposal now and it occurs to me that we still have the option to return the stat objects for successfully stat-ed entries. The final callback parameter could well be of type |
Comment by iwehrman I'm going to push an implementation of your proposed now spec though; we can keep talking tomorrow about whether or not we want to elaborate it further. |
Comment by iwehrman I'm also not yet convinced that we should remove the stat parameter from the resolve callback. Sure impls could figure out a way to determine whether an entry is a file or directory without calling stat, but in that case it seems plausible that they would also be able to figure out the size and mtime as well. And let's not forget that we're combining these calls because of the potential-but-significant network overhead. So, given that in the Brackets app shell there isn't a faster way to make this determination, it seems still worth considering. |
Comment by busykai
|
Comment by gruehle After further discussion, we decided to keep the |
Comment by iwehrman All of the issues I raised have been resolved, so I'm checking off. Over to you, |
Comment by peterflynn High-level note: there are still 50-60 references to FileEntry and 15+ references to DirectoryEntry in the codebase (presumably all in comments). Should we aim to have those 100% cleaned up this sprint? |
Comment by iwehrman I'll clean those up tomorrow. |
Comment by iwehrman
|
Comment by peterflynn Whew! Finally time to come up for air! Done with first pass. I haven't looked at any replies to my comments yet. Will start circling back now. |
Comment by gruehle Initial review complete. ☕ |
Comment by iwehrman All changes from the review comments pushed. |
Comment by peterflynn Sorry for adding a bunch of comments saying I was fixing stuff that's already been fixed... dunno how I got so far out of sync from the tip of the branch. One of my |
Comment by peterflynn Holy crap, it's actually ready to land. Here goes nothing! 🙈 🙏 |
Comment by MiguelCastillo Oh man... Let's see how this one breaks my extensions 🎲 |
Comment by peterflynn Boom! The eagle has landed! |
Comment by iwehrman |
Comment by peterflynn High five, Ian! 🙌 |
Comment by njx |
Comment by larz0 |
Comment by lkcampbell |
Issue by gruehle
Thursday Oct 31, 2013 at 22:36 GMT
Originally opened as adobe/brackets#5797
This pull request adds a new FileSystem API that replaces
NativeFileSystem
,FileIndexManager
and direct calls tobrackets.fs.*
functions.This pull request changes the API, but does not add any significant new features or performance gains. These will be done in subsequent pull requests.
This is a big change. It will break some extensions. However, the breakages are minimized through deprecation "shims" for many of the commonly used APIs that have been removed.
See this Brackets-Dev forum thread for an introduction to the changes.
See the FileSystem and FileSystem API Migration wiki pages for more details.
Sign-offs:
@
peterflynn@
iwehrman@
gruehlegruehle included the following code: https://github.com/adobe/brackets/pull/5797/commits
The text was updated successfully, but these errors were encountered: