Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

FileSystem Implementation (#247) #2158

Merged
merged 3 commits into from
Dec 6, 2012
Merged

FileSystem Implementation (#247) #2158

merged 3 commits into from
Dec 6, 2012

Conversation

jbalsas
Copy link
Contributor

@jbalsas jbalsas commented Nov 19, 2012

This pull request implements the FileSystem interface described in http://www.w3.org/TR/file-system-api/#the-filesystem-interface and modifies NativeFileSystem.requestNativeFileSystem to return a FileSystem object with a root DirectoryEntry following the specs.

As indicated in #247, it also updates all existing calls to requestNativeFileSystem (tests included) to get the root DirectoryEntry.

This is a dangerous change that could potentially break several extensions so we may want to implement this in a more backward compatible manner. However, I've done a global find in all the extensions listed in the wiki and only brackets-snippets seems to be calling requestNativeFileSystem directly, so it looks less disruptive than I originally thought...

@ghost ghost assigned jasonsanjose Nov 20, 2012
@jasonsanjose
Copy link
Member

Thanks, Chema. I'm not sure if we can prioritize this for this week. We'll have to take a look again next week. Thanks for your patience.

@jbalsas
Copy link
Contributor Author

jbalsas commented Nov 21, 2012

No problem! It's lowprio/cleanup and you guys seem busy enough. No need to hurry on this one ;)

@jasonsanjose
Copy link
Member

reviewing

@@ -214,6 +214,7 @@ define(function (require, exports, module) {
// TODO: (issue #241): implement FileEntry.remove()
// once NativeFileSystem has a delete/unlink, should use that
brackets.fs.unlink(placeholderPath, function (err) {
console.log(err);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove debug code

@jasonsanjose
Copy link
Member

Initial review complete. Just one minor comment.

@jbalsas
Copy link
Contributor Author

jbalsas commented Dec 6, 2012

Oops... fixed!

@jasonsanjose
Copy link
Member

Thanks, Chema! Merging.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants