no-src / gofs

A cross-platform real-time file synchronization tool out of the box based on Golang
Apache License 2.0
460 stars 40 forks source link

Code refactoring with io/fs package #248

Closed mstmdev closed 1 year ago

mstmdev commented 1 year ago

Replace os.ModePerm with fs.ModePerm. Replace os.FileInfo with fs.FileInfo. Replace os.FileMode with fs.FileMode. Replace minio.statDirEntry and sftp.statDirEntry with fs.FileInfoToDirEntry.

codecov[bot] commented 1 year ago

Codecov Report

Merging #248 (b55b631) into main (0b69871) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #248   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           55        55           
  Lines         1690      1690           
=========================================
  Hits          1690      1690           
Files Changed Coverage Δ
fs/fs.go 100.00% <ø> (ø)
api/task/loader/file.go 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more