jvilk / BrowserFS

BrowserFS is an in-browser filesystem that emulates the Node JS filesystem API and supports storing and retrieving files from various backends.
Other
3.07k stars 218 forks source link

path.dirname('a/b') bug #96

Closed Narazaka closed 9 years ago

Narazaka commented 9 years ago

path.dirname (node.js like) bug

path.dirname('a/b') returns not 'a' but '.'

fix code: dist/browserfs.js line 3692

if (sections.length > 1) { to if (sections.length >= 1) {

Narazaka commented 9 years ago

sorry fix code is wrong

jvilk commented 9 years ago

Thanks for the bug report! I'm fixing now.