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
Is your feature request related to a problem? Please describe.
I'm implementing caching on cloudflare utilizing workers and hosting the data on backblaze. So far it works flawlessly, completely removing any need for local bandwidth, and serving files from local CDN's which vastly speeds up downloads. There is one issue though: While I can get the required information for any file in root (The download endpoint provides the file name in the Content-Disposition header) there is no way to know when a file is within a folder. This results in [root-game-folder]\That One Game.7z working as it grabs from https://files.domain.com/files/bucket/That One Game.7z, but [root-game-folder]\That One Trilogy\That Second Game.7z failing because it is trying to grab the file from https://files.domain.com/files/bucket/That Second Game.7z when it needs to grab from https://files.domain.com/files/bucket/That One Trilogy/That One Game.7z.
Describe the solution you'd like
An API call being able to return the relative path of the game, from the root GV games folder.
Describe alternatives you've considered
Storing everything in root, which is a short term valid option and one I will be following. However folder structure is likely going to become important when manifests are added, and folder organization is important for some.
Additional context
Backblaze doesn't actually use folders, it uses files with slashes in the name. But for all intents and purposes they can be treated as "in a folder(s)".
The text was updated successfully, but these errors were encountered:
Actually, I'm dumb and didn't realize that ~/api/games/[id] already returns { "file_path" } which completely negates this need as I can parse out what is needed from there. Closing as "I am a dumb".
Is your feature request related to a problem? Please describe.
I'm implementing caching on cloudflare utilizing workers and hosting the data on backblaze. So far it works flawlessly, completely removing any need for local bandwidth, and serving files from local CDN's which vastly speeds up downloads. There is one issue though: While I can get the required information for any file in root (The download endpoint provides the file name in the
Content-Disposition
header) there is no way to know when a file is within a folder. This results in[root-game-folder]\That One Game.7z
working as it grabs fromhttps://files.domain.com/files/bucket/That One Game.7z
, but[root-game-folder]\That One Trilogy\That Second Game.7z
failing because it is trying to grab the file fromhttps://files.domain.com/files/bucket/That Second Game.7z
when it needs to grab fromhttps://files.domain.com/files/bucket/That One Trilogy/That One Game.7z
.Describe the solution you'd like
An API call being able to return the relative path of the game, from the root GV games folder.
Describe alternatives you've considered
Storing everything in root, which is a short term valid option and one I will be following. However folder structure is likely going to become important when manifests are added, and folder organization is important for some.
Additional context
Backblaze doesn't actually use folders, it uses files with slashes in the name. But for all intents and purposes they can be treated as "in a folder(s)".
The text was updated successfully, but these errors were encountered: