hjyssg / ShiguReader

硬核宅宅资源管理器. Ultimate Manga Resource Manager
MIT License
400 stars 45 forks source link

[potential bug] path seperator #94

Closed hjyssg closed 3 years ago

hjyssg commented 4 years ago

linux uses / windows uses \

the client code is becoming confusing. should receive a universal solution.

hjyssg commented 3 years ago

app.post('/api/getGeneralInfo', (req, res) => {
    let os = isWindows()? "windows": "linux";
    res.send({
        server_os: 
        path_sep: path.sep,
        // userConfig
    })
});
hjyssg commented 3 years ago

filename 禁止字符 \/:*?"<>|

hjyssg commented 3 years ago

fixed in https://github.com/hjyssg/ShiguReader/commit/46a56eb7db6ea1dd2e919624a92a2d352f0cfb3a