mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 12:10:51 +00:00
Merge pull request #138 from overleaf/em-hidden-output-files
Show output files in subfolders
This commit is contained in:
commit
37c2905389
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ module.exports = OutputCacheManager =
|
||||||
async.mapSeries outputFiles, (file, cb) ->
|
async.mapSeries outputFiles, (file, cb) ->
|
||||||
# don't send dot files as output, express doesn't serve them
|
# don't send dot files as output, express doesn't serve them
|
||||||
if OutputCacheManager._fileIsHidden(file.path)
|
if OutputCacheManager._fileIsHidden(file.path)
|
||||||
logger.warn compileDir: compileDir, path: file.path, "ignoring dotfile in output"
|
logger.debug compileDir: compileDir, path: file.path, "ignoring dotfile in output"
|
||||||
return cb()
|
return cb()
|
||||||
# copy other files into cache directory if valid
|
# copy other files into cache directory if valid
|
||||||
newFile = _.clone(file)
|
newFile = _.clone(file)
|
||||||
|
@ -150,7 +150,7 @@ module.exports = OutputCacheManager =
|
||||||
, callback
|
, callback
|
||||||
|
|
||||||
_fileIsHidden: (path) ->
|
_fileIsHidden: (path) ->
|
||||||
return path?.match(/^\.|\/./)?
|
return path?.match(/^\.|\/\./)?
|
||||||
|
|
||||||
_checkFileIsSafe: (src, callback = (error, isSafe) ->) ->
|
_checkFileIsSafe: (src, callback = (error, isSafe) ->) ->
|
||||||
# check if we have a valid file to copy into the cache
|
# check if we have a valid file to copy into the cache
|
||||||
|
|
Loading…
Reference in a new issue