I have a string variable that represents the full path to some file, for example:
x = "/home/user/.local/share/app/some_file"on Linux
or
x = "C:\\Program Files\\app\\some_file"on Windows
I am wondering if there is any kind of programmatic path, better than breaking the line manually to get to the directory path
How to return a directory path (a path without a file name) in Lua without loading an additional library such as LFS, since I am using the Lua extension from another application?
theta source
share