INSTALL @lib$+"custom\useful" (for example) fails "File or Path not Found". Works OK in BBCSDL. INSTALL @lib$+"useful" seems OK.
Earlier editions of BBCSDL did not support sub-folders of @lib$ as I recall. Did In-Browser edition get missed out?
The folder "custom" is a linked folder, although this may not be relevant.
In-Browser edition does not install files if not in @lib$
-
circe
- Posts: 12
- Joined: Wed 07 May 2025, 09:26
-
Richard Russell
- Posts: 540
- Joined: Tue 18 Jun 2024, 09:32
Re: In-Browser edition does not install files if not in @lib$
On a very simplistic test, sub-folders of @lib$ do seem to be working in the in-browser version here. This is what I did:
- Created a sub-directory test in my local @lib$ folder.
- Copied a dummy .bbc file (it could have been anything) into that directory.
- Built a trivial web app (which simply exits to immediate mode) with the dummy file embedded.
- Ran the app in my browser, navigated to @lib$/test in immediate mode.
- The embedded file was seemingly present.
If that's literally what you wrote, it will inevitably fail: non-Windows operating systems don't recognise \ as a directory delimiter! You must always use /, fortunately that's accepted in Windows as well so there's no cause to do anything different. Your code as listed would fail in MacOS, Linux, Android and iOS too.INSTALL @lib$+"custom\useful" (for example) fails "File or Path not Found". Works OK in BBCSDL. INSTALL @lib$+"useful" seems OK.
-
Richard Russell
- Posts: 540
- Joined: Tue 18 Jun 2024, 09:32
Re: In-Browser edition does not install files if not in @lib$
That is called out in the differences document where it says this:Richard Russell wrote: ↑Thu 11 Dec 2025, 15:12 non-Windows operating systems don't recognise \ as a directory delimiter!
3. File System
a. To ensure cross-platform compatibility, a forward-slash (/) should always be used as the
directory delimiter, not a backslash (\).