Clean-up mentions of /public/

This commit is contained in:
Cohee
2024-04-21 23:53:46 +03:00
parent f75daba6c0
commit bc9c70556e
4 changed files with 16 additions and 53 deletions

View File

@ -311,9 +311,9 @@ function tryParse(str) {
}
/**
* Takes a path to a client-accessible file in the `public` folder and converts it to a relative URL segment that the
* client can fetch it from. This involves stripping the `public/` prefix and always using `/` as the separator.
* @param {string} root The root directory of the public folder.
* Takes a path to a client-accessible file in the data folder and converts it to a relative URL segment that the
* client can fetch it from. This involves stripping the data root path prefix and always using `/` as the separator.
* @param {string} root The root directory of the user data folder.
* @param {string} inputPath The path to be converted.
* @returns The relative URL path from which the client can access the file.
*/