abstract-file
Advanced tools
Comparing version 0.4.5 to 0.5.0
@@ -140,3 +140,7 @@ (function() { | ||
get: function() { | ||
return path.dirname(this.path); | ||
if (this.isDirectory()) { | ||
return this.path; | ||
} else { | ||
return path.dirname(this.path); | ||
} | ||
} | ||
@@ -143,0 +147,0 @@ }, |
{ | ||
"name": "abstract-file", | ||
"description": "It can be used on any virtual file system, and stream supports.", | ||
"version": "0.4.5", | ||
"version": "0.5.0", | ||
"homepage": "https://github.com/snowyu/abstract-file.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -128,2 +128,11 @@ ## abstract-file [![npm](https://img.shields.io/npm/v/abstract-file.svg)](https://npmjs.org/package/abstract-file) | ||
### v0.5 | ||
* the dirname attribute should pass the path directly if the file is a folder. | ||
if @isDirectory() | ||
@path | ||
else | ||
path.dirname @path | ||
### v0.4 | ||
@@ -130,0 +139,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
102557
687
160