Issue by peterflynn
Wednesday Dec 17, 2014 at 18:44 GMT
Originally opened as adobe/brackets#10207
This is for #10193. See discussion here for context: adobe/brackets#10192 (comment).
Move shared code into FileUtils (with unit tests) to minimize diff in the _getInitialDocFromCurrent() code that is duplicated between the two Live Preview impls.
Also...
- fixes an unhit edge case in getParentFolder() (now getParentDirectory()) that behaves differently across platforms
- removes duplicate copy of getFilenameWithoutExtension() in LiveDevelopment.js (copy in FileUtils was identical)
- add/fix some unit tests for two existing FileUtils APIs
peterflynn included the following code: https://github.com/adobe/brackets/pull/10207/commits