borgbackup / borg

@@ -39,6 +39,7 @@
Loading
39 39
from .helpers import safe_ns
40 40
from .helpers import ellipsis_truncate, ProgressIndicatorPercent, log_multi
41 41
from .helpers import os_open, flags_normal, flags_dir
42 +
from .helpers import os_stat
42 43
from .helpers import msgpack
43 44
from .helpers import sig_int
44 45
from .lrucache import LRUCache
@@ -1284,7 +1285,7 @@
Loading
1284 1285
        with self.create_helper(path, st, dev_type) as (item, status, hardlinked, hardlink_master):  # char/block device
1285 1286
            # looks like we can not work fd-based here without causing issues when trying to open/close the device
1286 1287
            with backup_io('stat'):
1287 -
                st = stat_update_check(st, os.stat(name, dir_fd=parent_fd, follow_symlinks=False))
1288 +
                st = stat_update_check(st, os_stat(path=path, parent_fd=parent_fd, name=name, follow_symlinks=False))
1288 1289
            item.rdev = st.st_rdev
1289 1290
            item.update(self.metadata_collector.stat_attrs(st, path))
1290 1291
            return status

@@ -681,7 +681,7 @@
Loading
681 681
                return fso.process_symlink(path=path, parent_fd=parent_fd, name=name, st=st)
682 682
            else:
683 683
                try:
684 -
                    st_target = os.stat(name, dir_fd=parent_fd, follow_symlinks=True)
684 +
                    st_target = os_stat(path=path, parent_fd=parent_fd, name=name, follow_symlinks=True)
685 685
                except OSError:
686 686
                    special = False
687 687
                else:
Files Coverage
src/borg 83.31%
Project Totals (38 files) 83.31%
1342540975
python=3.9
OS=Linux
1342540975
python=3.10-dev
OS=Linux
1342540975
python=3.8
OS=macOS
1342540975
python=3.8
OS=Linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading