Configuration commands - PLLUG/CPPQT-2019-1-FileServer GitHub Wiki

This table describes the configuration options you can use from the command line or configuration file.

Command in configuration file Command from command line Description
this command cannot be set in a file --config< configfile > Read options from config file
this command cannot be set in a file --help Produce help message
about --about output README information
port,< port > --port< port > The TCP/IP port that the server instance should use to connect to clients
The default value is 8080
dir,< path > --dir< path > Root folder that will be available on server
This parameter cannot be ommited and has no default value
dpermission,
< enable,disable >
--dpermission
< enable,disable >
Enable\disable ability to download files
The default value is "enable"
fsize,
< bytes, kilobytes,
megabytes, automatically >
--fsize
< bytes, kilobytes,
megabytes, automatically >
Specify the file size displaying mode
The default value is "bytes"
vicon, < true, false> --vicon< true, false> Visibility of displaying icon column
The default value is "false"
vsize, < true, false> --vsize< true, false> Visibility of file size column
The default value is "false"
vinfo, < true, false> --vinfo< true, false> Visibility of detailed information column
The default value is "false"

###More about --dir

Since dir parameter cannot be omitted, you can set it as the first parameter without calling "--dir", e.g.

>file-server C:\

instead of

>file-server --dir C:\

#Config file

Config file must be located in the same folder with the built solution

How to run config file:

>file-server --config config.cfg

Example of config file:

dir=C:
vinfo=true
vsize=true
fsize=kilobytes

Links

https://www.boost.org/doc/libs/1_50_0/doc/html/program_options/tutorial.html

https://www.boost.org/doc/libs/1_50_0/doc/html/program_options/tutorial.html

⚠️ **GitHub.com Fallback** ⚠️