Skip to content

Commit

Permalink
added f.last_modified
Browse files Browse the repository at this point in the history
  • Loading branch information
mickelindahl committed May 30, 2017
1 parent 04b0b19 commit e9a3b50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ function diskRead( files, encoding, resolve ) {
let text = fs.readFileSync( f.path, encoding );
data.push( {
text: text,
file: f.name
file: f.name,
last_modified: f.last_modified
} )

} );
Expand Down Expand Up @@ -449,7 +450,8 @@ function ftpRead( files, encoding, credentials, resolve ) {

data.push( {
text: string,
file: f.name
file: f.name,
last_modified: f.last_modified
} );

return resolveInner()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "text-file-import",
"version": "1.0.6",
"version": "1.1.0",
"description": "Extends jsftp used fetch multiple file content from a remote directory",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e9a3b50

Please sign in to comment.