Skip to content

Conversation

@ditsuke
Copy link

@ditsuke ditsuke commented Jun 19, 2021

Replaced the usage of tempfile's NamedTemporaryFile() method with the mkstemp() method for the generation of the temp rclone config. This method requires the wrapper to remove the file manually but allows it to work on Windows.

This fixes #4.

Replaced the usage of tempfile's NamedTemporaryFile() method with
the mkstemp() method for the generation of the temp rclone config. The
new method requires manual removal of the file but allows the wrapper
to work on Windows.
In general, rclone may attempt to update a config file and fail if it
cannot do so. With this change, the file descriptor returned by
mkstemp() is closed before invoking rclone.
@Ethycs
Copy link

Ethycs commented Aug 10, 2021

This would be very useful. Thanks alot!

@mohdsabahat
Copy link

Looks like his commit doesn't reflect in the main repository?
Or i am doing something wrong?

@ditsuke
Copy link
Author

ditsuke commented Jul 30, 2022

Looks like his commit doesn't reflect in the main repository? Or i am doing something wrong?

Hi @mohdsabahat, apologies I couldn't respond earlier. This is an unmerged pull request, but if you want to use it you could use the master branch from my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anyone Still thereeee? This seems deserted....

3 participants