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
Folders set from the command line, using the -d and -b options, are ignored.
This is due to configStr being initialised to "{}", and later being used to override the command line with empty values.
Moreover, sendDirContents() uses a fallback, so it actually sends the current directory when this happens, but that fallback doesn't exist when serving a file, so when the user selects one of the files, the server just shows an error message.
The text was updated successfully, but these errors were encountered:
Ah, you are right, I didn't pay attention to the unusual syntax used for options.
A solution to avoid my mistake would be to output an error when an argument is not an option, so that tw5server -d /full/path would fail on the last argument?
Folders set from the command line, using the -d and -b options, are ignored.
This is due to configStr being initialised to "{}", and later being used to override the command line with empty values.
Moreover, sendDirContents() uses a fallback, so it actually sends the current directory when this happens, but that fallback doesn't exist when serving a file, so when the user selects one of the files, the server just shows an error message.
The text was updated successfully, but these errors were encountered: