albertony
fdd2f8e6d2
Error strings should not be capitalized
...
Reported by staticcheck 2022.1.2 (v0.3.2)
See: staticcheck.io
2022-06-23 23:26:02 +02:00
albertony
53f831f40a
docs: add missing code section formatting to commands and flags
2022-06-21 23:43:00 +02:00
albertony
9f81b4df4f
docs/lsjson: fix code block indentation
2022-06-21 23:43:00 +02:00
albertony
70d9d75801
docs: improve serve command descriptions
2022-06-21 23:43:00 +02:00
albertony
bc70a95fca
docs: consistent capitalization of WebDAV, DLNA, HTTP
2022-06-21 23:43:00 +02:00
albertony
ee87e919c5
docs/ncdu: note that refresh screen shortcut will fix screen corruption
2022-06-21 23:43:00 +02:00
albertony
4f0eae366f
docs/ncdu: fix inconsistency in key map help text
...
Ctrl+L was listed as ^L, while Ctrl+c was listed as c-C. Changed the latter to ^c.
2022-06-21 23:43:00 +02:00
albertony
de5ccaab8e
docs: cross link doc pages for related commands
2022-06-21 23:43:00 +02:00
albertony
4b7dc35cf4
Fix sync docs incorrect merge
...
This copies the changes from an autogenerated section in the following commit:
https://github.com/rclone/rclone/commit/f2a15a174f8cdd21950b123f102ec9f9105098e1
2022-06-21 23:43:00 +02:00
8b8802a078
copyurl: Add option to honor the HTTP header filename directive.
...
Implemented --header-filename for use with copyurl.
For specifically setting preferred download filenames for HTTP requests, RFC 6226
specifies a 'filename' directive, available within 'Content-Disposition'
header. We can handle with 'mime.ParseMediaType'.
See below for details:
https://httpwg.org/specs/rfc6266.html#disposition.parameter.filename
https://httpwg.org/specs/rfc6266.html#advice.generating
Co-authored-by: buengese <buengese@protonmail.com >
2022-06-20 12:06:09 +01:00
eNV25 and GitHub
36add0afbf
ncdu: replace termbox with tcell's termbox wrapper
...
The https://github.com/nsf/termbox-go library is no longer maintained
so this change replaces it with the maintained
github.com/gdamore/tcell library which has a termbox backwards
compatibility layer.
There are a few minor changes from the termbox library:
- Using Clear with fg bg ColorDefault resulted in a white background for some reason.
- Clear with fg ColorWhite bg ColorBlack was used instead.
- tcell's termbox wrapper doesn't support ColorLightYellow.
- ColorYellow + 8 was used instead.
2022-06-19 11:22:45 +01:00
Nick Craig-Wood
7d3648dc46
serve ftp: check --passive-port arguments are correct
...
See: https://forum.rclone.org/t/serve-ftp-passive-port-validity-check/27458
2022-06-16 22:13:50 +01:00
Nick Craig-Wood
a6ca4b3817
test info: check file name lengths using 1,2,3,4 byte unicode characters
2022-06-16 22:13:50 +01:00
Nick Craig-Wood
e57fe14b61
mount: log IO errors at ERROR level - fixes #6217
2022-06-16 22:13:50 +01:00
Nick Craig-Wood
3f61869179
cmount: add tracing for *xattr FUSE callbacks
...
See: https://github.com/winfsp/cgofuse/issues/66
See: https://forum.rclone.org/t/cannot-copy-files-to-mounted-azure-storage-windows/30092
2022-06-16 22:13:50 +01:00
Nick Craig-Wood
a0cb3bbd02
mount: allow tests to run on CI
2022-06-16 16:48:09 +01:00
CrossR and Sebastian Bünger
0279bf3abb
ncdu: implement multi selection
...
Co-authored-by: buengese <buengese@protonmail.com >
2022-06-14 13:57:35 +02:00
albertony
ec117593f1
Fix lint issues reported by staticcheck
...
Used staticcheck 2022.1.2 (v0.3.2)
See: staticcheck.io
2022-06-13 21:13:50 +02:00
albertony and Nick Craig-Wood
afa30abd33
mount: remove legacy OS X remnants
2022-06-13 18:06:38 +01:00
albertony and Nick Craig-Wood
70d1d8d760
mount: replace deprecated fuse.ENOSYS with syscall.ENOSYS
2022-06-13 17:59:44 +01:00
Roberto Ricci and Nick Craig-Wood
0f41e91d41
cmd/ncdu: display correct path in delete confirmation dialog
...
If the remote on the command line is "remote:subdir", when
deleting "filename", the confirmation message shows the path
"remote:subdirfilename".
Using fspath.JoinRootPath() fixes this. Also use this function
and fs.ConfigString() in other parts of the file, since they
are more appropriate.
2022-06-13 17:40:59 +01:00
Nick Craig-Wood
6c2331ffd7
mount: skip tests on CI even if >= 2 processors
2022-06-08 18:29:42 +01:00
Eng Zer Jun and Nick Craig-Wood
4f0ddb60e7
refactor: replace strings.Replace with strings.ReplaceAll
...
strings.ReplaceAll(s, old, new) is a wrapper function for
strings.Replace(s, old, new, -1). But strings.ReplaceAll is more
readable and removes the hardcoded -1.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2022-05-17 11:08:37 +01:00
albertony and Nick Craig-Wood
8697f0bd26
about: improved error message
2022-05-13 12:08:10 +01:00
albertony and Nick Craig-Wood
a9f18f8093
Set proper exit code for errors that are not low-level retried (e.g. size/timestamp changing)
...
Fixes #5785
2022-05-13 12:02:55 +01:00
Nick Craig-Wood
a947f298e6
cmount: remove cgo from windows build requirements since it builds without
2022-04-29 18:04:21 +01:00
albertony
97606bbdef
ncdu: refactor accumulated attributes into a struct
2022-04-26 21:12:52 +02:00
albertony
a15885dd74
docs/ncdu: document flag prefixes
2022-04-26 21:12:52 +02:00
albertony
87c201c92a
ncdu: fix issue where dir size is summed when file sizes are -1
...
Some backends may not provide size for all objects, and instead
return -1. Existing version included these in directory sums,
with strange results. With this commit rclone ncdu will consider
negative sizes as zero, but add a new prefix flag '~' with a
description that indicates the shown size is inaccurate.
Fixes #6084
2022-04-26 21:12:52 +02:00
albertony
d77736c21a
docs/size: extend documentation of size command
2022-04-26 19:37:15 +02:00
albertony
86bd5f6922
size: warn about inaccurate results when objects with unknown size
2022-04-26 19:37:15 +02:00
Nick Craig-Wood
5605e34f7b
mount: fix --devname and fusermount: unknown option 'fsname' when mounting via rc
...
In this commit
f4c40bf79d mount: add --devname to set the device name sent to FUSE for mount display
The --devname parameter was added. However it was soon noticed that
attempting to mount via the rc gave this error:
mount helper error: fusermount: unknown option 'fsname'
mount FAILED: fusermount: exit status 1
This was because the DeviceName (and VolumeName) parameter was never
being initialised when the mount was called via the rc.
The fix for this was to refactor the rc interface so it called the
same Mount method as the command line mount which initialised the
DeviceName and VolumeName parameters properly.
This also fixes the cmd/mount tests which were breaking in the same
way but since they aren't normally run on the CI we didn't notice.
Fixes #6044
2022-04-25 12:17:25 +01:00
Nick Craig-Wood
240561850b
test makefiles: add --chargen flag to make ascii chargen files
2022-04-13 23:07:56 +01:00
Nick Craig-Wood
4c02f50ef5
build: update github.com/billziss-gh to github.com/winfsp
2022-04-13 10:18:26 +01:00
Nick Craig-Wood
f583b86334
test makefiles: fix crash if --min-file-size <= --max-file-size
2022-04-12 13:45:20 +01:00
Nick Craig-Wood
118e8e1470
test makefiles: add --sparse, --zero, --pattern and --ascii flags
2022-04-12 13:45:20 +01:00
Nick Craig-Wood
afcea9c72b
test makefile: implement new test command to write a single file
2022-04-12 12:57:16 +01:00
Nil Alexandrov and Nick Craig-Wood
65652f7a75
Add Akamai Netstorage as a new backend.
2022-03-09 12:42:22 +00:00
Nick Craig-Wood
8ee0fe9863
serve docker: disable linux tests in CI as they are locking up regularly
2022-02-28 18:01:47 +00:00
Nick Craig-Wood
f4c40bf79d
mount: add --devname to set the device name sent to FUSE for mount display
...
Before this change, the device name was always the remote:path rclone
was configured with. However this can contain sensitive information
and it appears in the `mount` output, so `--devname` allows the user
to configure it.
See: https://forum.rclone.org/t/rclone-mount-blomp-problem/29151/11
2022-02-09 11:56:43 +00:00
Eng Zer Jun and Nick Craig-Wood
8cf76f5e11
test: use T.TempDir to create temporary test directory
...
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2022-02-01 11:47:04 +00:00
albertony
07f53aebdc
touch: fix issue where directory is created instead of file
...
Detected on ftp, sftp and Dropbox backends.
Fixes #5952
2022-01-28 20:29:12 +01:00
albertony
bd6d36b3f6
docs: improve standard list of properties for options
2022-01-28 19:43:51 +01:00
Nick Craig-Wood
83b6b62c1b
build: disable cmount tests under macOS and the CI since they are locking up
...
This fixes #5951 and allows the macOS builds to run again
See #5960 for more info.
2022-01-27 17:33:04 +00:00
albertony
8f3f24672c
docs/serve: move help for template option into separate section
2022-01-25 18:19:21 +01:00
Vanessasaurus and Nick Craig-Wood
9d4eab32d8
cmd: fix broken example link in help.go
...
This link appears to be broken, so here is another reference to (I think) the same file that provides a good example of coba. We could also do the current commit https://github.com/moby/moby/blob/8312004f41e9500824fa16ae991eeee0083f4771/cli/cobra.go although it might be better to maintain an up to date example.
2022-01-13 16:26:19 +00:00
Alain Nussbaumer and Nick Craig-Wood
b4ba7b69b8
dlna: change icons to the newest ones.
2022-01-13 16:23:24 +00:00
albertony
871cc2f62d
docs: fix links to rc sections
2022-01-12 19:51:26 +01:00
albertony
071a9e882d
docs: capitalization of flag usage strings
2021-12-30 14:07:24 +01:00
albertony
4e2ca3330c
tree: remove obsolete --human replaced by global --human-readable - fixes #5868
2021-12-21 20:17:00 +01:00