All the documentation I found used backslashes(\) for filepaths e.g "s\subpart.dat". But I could not find if forward slashes(/) are also allowed. LDView can use either without any errors, while LDPe does show an error. If either both or only backslashes are allowed it should be mentioned in the Documentation either under filename or a new section. I do ask this because in ConvertToLDraw I currently use forward slashes and I got this Bug report. I will change the filepaths if they are out of spec.
Filepath Backslash(\) or Forwardslash(/)
(2025-08-18, 16:08)Hageta Wrote: Bricklink Studio also supports both b.t.w.
It's a little known fact that Windows supports / as a path separator in most places. So programs have to add extra code to not accept / in place of \. (The Windows command line is one place where / gets special treatment, making it not usually work as a path separator.)
All official parts are required to use \ as their path separator (for s\ and 8\ and 48\). But programs have to add extra code to disallow /, and it seems like I didn't do that in LDView. (It's been over two decades since that code was written, so I honestly don't remember the details.)
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)