veeso / termscp

🖥 A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3/SMB
https://termscp.veeso.dev
MIT License
1.74k stars 49 forks source link

Remove created file if transfer failed #29

Closed veeso closed 3 years ago

veeso commented 3 years ago

23 - Remove created file if transfer failed

Fixes #23

Description

This PR introduces the removal of the file just created after an upload/download whenever the transfer fails. The feature is implemented in a way that prevents the client to try to remove a file which previously existed, but only when the write process has failed (so the file is corrupted).

List here your changes

Type of change

Checklist

codecov[bot] commented 3 years ago

Codecov Report

Merging #29 (fe51185) into 0.5.0 (f1225b1) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            0.5.0      #29   +/-   ##
=======================================
  Coverage   70.44%   70.44%           
=======================================
  Files          30       30           
  Lines        2724     2724           
=======================================
  Hits         1919     1919           
  Misses        805      805           
Impacted Files Coverage Δ
src/host/mod.rs 77.77% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f1225b1...fe51185. Read the comment docs.