Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Copy files to destination without metadata #2

Merged
merged 1 commit into from
Sep 2, 2015

Commits on Sep 1, 2015

  1. Copy files to destination without metadata

    This is to support mounts to SAMBA shares or NTFS partitions. Those
    filesystems do not support file permission bitflags or other POSIX
    metadata. `shutil.move`, `shutil.copy2` and `shutil.copy` all copy the
    file *and then* attempt to do `chmod` or copy stats over.
    
    This change literally only copies the files. Permission flags are
    untouched. This shouldn't be a problem in theory since the destination
    will either not need that information *or* have inheritable permissions
    already properly set.
    
    Without this change, previous behavior resulted in copies properly
    happening but nzbget would show them as post-processing failures
    because the `copystat` piece was failing, if the target directory was
    a SAMBA share.
    rcdailey committed Sep 1, 2015
    Configuration menu
    Copy the full SHA
    4944f94 View commit details
    Browse the repository at this point in the history