@@ -6,8 +6,72 @@ configuration and usage flags supported by HTTPDirFS.
66
77### Command Syntax
88
9+ Below is the raw help output displaying all available flags:
10+
911``` bash
10- httpdirfs [options] URL mountpoint
12+ usage: httpdirfs [options] URL mountpoint
13+
14+ general options:
15+ --config Specify a configuration file
16+ -o opt,[opt...] Mount options
17+ -h --help Print help
18+ -V --version Print version
19+ -f Foreground operation
20+ -s Disable multi-threaded operation
21+ -d --debug Enable debug output (implies -f)
22+
23+ HTTPDirFS options:
24+ -u --username HTTP authentication username
25+ -p --password HTTP authentication password
26+ -P --proxy Proxy for libcurl, for more details refer to
27+ https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html
28+ --proxy-username Username for the proxy
29+ --proxy-password Password for the proxy
30+ --proxy-cacert Certificate authority for the proxy
31+ --proxy-capath Certificate authority directory for the proxy
32+ --cache Enable cache (default: off)
33+ --cache-location Set a custom cache location
34+ (default: " ${XDG_CACHE_HOME} /httpdirfs" )
35+ --cache-clear Delete the cache directory or the custom location
36+ specified with ` --cache-location` , if the option is
37+ seen first. Then exit in either case.
38+ --cache-min-size Set minimum file size threshold for caching, in bytes
39+ (default: none)
40+ --cache-max-size Set maximum file size threshold for caching, in bytes
41+ (default: none)
42+ --cacert Certificate authority for the server
43+ --capath Certificate authority directory for the server
44+ --dl-seg-size Set cache download segment size, in MB (default: 8)
45+ Note: this setting is ignored if previously
46+ cached data is found for the requested file.
47+ --http-header Set one or more HTTP headers
48+ --max-conns Set maximum number of network connections that
49+ libcurl is allowed to make. (default: 6)
50+ --refresh-timeout The directories are refreshed after the specified
51+ time, in seconds (default: 3600)
52+ --retry-wait Set delay in seconds before retrying an HTTP request
53+ after encountering an error. (default: 5)
54+ --invalid-refresh Try refreshing invalid links when reading a directory.
55+ --user-agent Set user agent string (default: " HTTPDirFS-1.3.1" )
56+ --no-range-check Disable the built-in check for the server' s support
57+ for HTTP range requests
58+ --zero-len-is-dir If a file has a zero length, treat it as a directory
59+ --insecure-tls Disable libcurl TLS certificate verification by
60+ setting CURLOPT_SSL_VERIFYHOST to 0
61+ --external-links Include external (cross-origin) links from
62+ directory listings (default: off)
63+ --single-file-mode Single file mode - rather than mounting a whole
64+ directory, present a single file inside a virtual
65+ directory.
66+
67+ For mounting a Airsonic / Subsonic server:
68+ --sonic-username The username for your Airsonic / Subsonic server
69+ --sonic-password The password for your Airsonic / Subsonic server
70+ --sonic-id3 Enable ID3 mode - this present the server content in
71+ Artist/Album/Song layout
72+ --sonic-insecure Authenticate against your Airsonic / Subsonic server
73+ using the insecure username / hex encoded password
74+ scheme
1175```
1276
1377---
@@ -149,6 +213,20 @@ httpdirfs [options] URL mountpoint
149213- **Note:** This setting is ignored for files that already have existing cached
150214 segment data on disk.
151215
216+ #### `--cache-min-size <bytes>`
217+
218+ - **Description:** Sets the minimum file size threshold for caching in bytes.
219+ Files with a size smaller than this threshold will bypass the local disk cache
220+ and be downloaded directly from the network upon access.
221+ - **Default:** None (no minimum limit is set).
222+
223+ #### `--cache-max-size <bytes>`
224+
225+ - **Description:** Sets the maximum file size threshold for caching in bytes.
226+ Files with a size larger than this threshold will bypass the local disk cache
227+ and be downloaded directly from the network upon access.
228+ - **Default:** None (no maximum limit is set).
229+
152230---
153231
154232### Network & Performance Options
0 commit comments