Skip to content

Commit fc9159b

Browse files
committed
Updated F.path.exists().
1 parent 87b780b commit fc9159b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

changes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
- added: `controller.trace(message)`
3838
- added: `req.split` contains splitted url
3939
- added: `F.touch(url/req)` for clearing internal cache of cached static files (it works only in release mode)
40-
- added: `F.path.exists(path, callback(exist))` for check of existing file
40+
- added: `F.path.exists(path, callback(exist, size, isFile))` for check of existing file
4141
- added: `U.chunker(name, [max])` creates the chunker (for streaming some items)
4242
- added: `F.worker2(name, [args], [callback], [timeout])`
4343
- added: `SchemaBuilderEntity.allow('fieldname1', 'fieldnameN')` - allows other keys out of defined fields

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14822,7 +14822,7 @@ function fsFileExists(filename, callback) {
1482214822
U.queue('framework.files', F.config['default-maximum-file-descriptors'], function(next) {
1482314823
fs.lstat(filename, function(err, stats) {
1482414824
next();
14825-
callback(!err && stats.isFile(), stats ? stats.size : 0);
14825+
callback(!err && stats.isFile(), stats ? stats.size : 0, stats ? stats.isFile() : false);
1482614826
});
1482714827
});
1482814828
};

0 commit comments

Comments
 (0)