mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
sftp: use vendor-specific VFS statistics extension for about if available
See #5763
This commit is contained in:
@@ -370,17 +370,19 @@ your RClone backend configuration to disable this behaviour.
|
||||
|
||||
### About command
|
||||
|
||||
SFTP supports the [about](/commands/rclone_about/) command if the
|
||||
same login has access to a Unix shell, where the `df` command is
|
||||
available (e.g. in the remote's PATH). `about` will return the
|
||||
total space, free space, and used space on the remote for the disk
|
||||
of the specified path on the remote or, if not set, the disk of
|
||||
the root on the remote. `about` will fail if it does not have
|
||||
shell access or if `df` is not found.
|
||||
The `about` command returns the total space, free space, and used
|
||||
space on the remote for the disk of the specified path on the remote or,
|
||||
if not set, the disk of the root on the remote.
|
||||
|
||||
If the server shell is PowerShell, probably with a Windows OpenSSH
|
||||
server, rclone supports `about` using a built-in shell command
|
||||
(see [shell access](#shell-access)).
|
||||
SFTP usually supports the [about](/commands/rclone_about/) command, but
|
||||
it depends on the server. If the server implements the vendor-specific
|
||||
VFS statistics extension, which is normally the case with OpenSSH instances,
|
||||
it will be used. If not, but the same login has access to a Unix shell,
|
||||
where the `df` command is available (e.g. in the remote's PATH), then
|
||||
this will be used instead. If the server shell is PowerShell, probably
|
||||
with a Windows OpenSSH server, rclone will use a built-in shell command
|
||||
(see [shell access](#shell-access)). If none of the above is applicable,
|
||||
`about` will fail.
|
||||
|
||||
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/sftp/sftp.go then run make backenddocs" >}}
|
||||
### Standard options
|
||||
|
||||
Reference in New Issue
Block a user