You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.
In multiple places '/' is used to check if it is a directory or is appended when missing at the end.
e.g. the following code from libaries.load.
if(root&&!/\/$/.test(root)){root=root+'/';}
Instead path.sep should be used to be cross platform compatible.
Maybe a better approach would be to always use / internaly and only call path.normalize when the file or directory should be accessed. This would avoid all the special handling in all the plugins and core code for different path seperators.
The text was updated successfully, but these errors were encountered:
In multiple places '/' is used to check if it is a directory or is appended when missing at the end.
e.g. the following code from libaries.load.
Instead path.sep should be used to be cross platform compatible.
Maybe a better approach would be to always use / internaly and only call path.normalize when the file or directory should be accessed. This would avoid all the special handling in all the plugins and core code for different path seperators.
The text was updated successfully, but these errors were encountered: