FML, it's colab again

This commit is contained in:
SillyLossy
2023-04-06 01:22:01 +03:00
parent dc4f20ed26
commit 1af8fa8ec6

View File

@ -167,7 +167,7 @@ app.use(function (req, res, next) { //Security
app.use((req, res, next) => { app.use((req, res, next) => {
if (req.url.startsWith('/characters/') && is_colab && process.env.googledrive == 2) { if (req.url.startsWith('/characters/') && is_colab && process.env.googledrive == 2) {
const filePath = path.join(__dirname, charactersPath, decodeURIComponent(req.url.substr('/characters'.length))); const filePath = path.join(charactersPath, decodeURIComponent(req.url.substr('/characters'.length)));
console.log('req.url: ' + req.url); console.log('req.url: ' + req.url);
console.log(filePath); console.log(filePath);
fs.access(filePath, fs.constants.R_OK, (err) => { fs.access(filePath, fs.constants.R_OK, (err) => {