rclone:pr-6811-drive-auth

Last commit made on 2023-03-06
Get this branch:
git clone -b pr-6811-drive-auth https://git.launchpad.net/rclone

Branch merges

Branch information

Name:
pr-6811-drive-auth
Repository:
lp:rclone

Recent commits

91dee03... by Peter Brunner <email address hidden>

add env auth to drive provider

This change provides the ability to pass `env_auth` as a parameter to
the drive provider. This enables the provider to pull IAM
credentials from the environment or instance metadata. Previously if no
auth method was given it would default to requesting oauth.

19e8c8d... by Nick Craig-Wood

s3: make purge remove directory markers too

See: https://forum.rclone.org/t/cannot-purge-aws-s3/36169/

de9c4a3... by Nick Craig-Wood

s3: use bucket.Join instead of path.Join to preserve paths

Before this change, path.Join would remove the trailing / from objects
which had them. The simplified bucket.Join does not.

d7ad13d... by Nick Craig-Wood

bucket: add Join function for a simplified path.Join

f9d50f6... by albertony <email address hidden>

lib/terminal: enable windows console virtual terminal sequences processing (ANSI/VT100 colors)

This ensures the virtual terminal processing mode is enabled on the rclone process
for Windows 10 consoles (by using Windows Console API functions GetConsoleMode/SetConsoleMode
and flag ENABLE_VIRTUAL_TERMINAL_PROCESSING), which adds native support for ANSI/VT100
escape sequences. This mode is default in many cases, e.g. when using the Windows
Terminal application, but in other cases it is not, and the default can also be
controlled with registry setting (see below), and therefore configuring it on the process
seem to be the only reliable way of ensuring it is enabled when supported.

[HKEY_CURRENT_USER\Console]
"VirtualTerminalLevel"=dword:00000001

3641993... by albertony <email address hidden>

tree: fix colored output on windows

Since rclone version 1.61.0 the tree command uses ANSI color sequences in output by
default, but this lead to issues in Windows terminals that were not handling these (#6668).

This commit ensures the tree command uses the terminal package for output. It relies on
go-colorable to properly handle ANSI color sequences: If stdout is connected to a terminal
the escape sequences are decoded and the text are written with color formatting using
Windows Console API. If stdout is not connected to a terminal, e.g. redirected to file,
the escape sequences are stripped off. The tree command has its own method for writing
directly to a file, specified with flag --output, and then the output is not passed
through the terminal package and must therefore be written without ansi codes.

93d3ae0... by Nick Craig-Wood

deletefile: return error code 4 if file does not exist

Before this change `rclone deletefile` would return error code 1 if
the file it was trying to delete does not exist.

Rclone can't actually tell at this point whether the file doesn't
exist or what you tried to delete is a directory, but it seems more
logical to return error code 4 "object not found" here.

See: https://forum.rclone.org/t/rclone-deletefile-cmd-return-exit-code-1-when-file-not-found-in-remote-why-1-and-not-exit-code-4/

e25e9fb... by Nick Craig-Wood

Add NodudeWasTaken to contributors

fe26d61... by NodudeWasTaken <email address hidden>

mega: add --mega-use-https flag

Some ISPs throttle HTTP which MEGA uses by default, so some users may find using HTTPS beneficial.

06e1e18... by Fred <email address hidden>

seafile: fix for flaky tests #6799