FileSystem driver not adhering to caching
asilvas opened this issue · comments
Originally posted in #22 (comment)
Hello, i'm trying to use
new imgSteam.http.Connect({
storage: {
driver: 'fs',
path: __dirname + '/uploads',
cache: {
driver: 'fs',
path: __dirname + '/cache'
}
}
}).getHandler()
Where the jpg files are in ./uploads and req.url = '/myfile.jpg' and uploads/myfile.jpg exists,
and directory cache exists.
GET /myfile.jpg/:/rs=w:650
Error: ENOENT: no such file or directory, open '/home/user/site/cache/myfile.jpg'
Could you give an example of storage configuration with fs drivers and a cache in another directory please ?
@kapouer fix published in 0.20.1
.
Awesome ! Thanks !
my pleasure