organize icon indicating copy to clipboard operation
organize copied to clipboard

Avoiding 0-byte files being created when encountering "No space left on device"

Open tordenflesk opened this issue 1 year ago • 4 comments

Any way of avoiding 0-byte files being created when encountering:

ERROR! [Errno 28] No space left on device

Originally posted by @tordenflesk in https://github.com/tfeldmann/organize/issues/191#issuecomment-1892720462

tordenflesk avatar Jan 20 '24 15:01 tordenflesk

Which actions result in empty files? Moving / copying?

tfeldmann avatar Jan 20 '24 15:01 tfeldmann

Moving

rules:
  - locations: \\Srv-omv01\data01\tdarr\output
    name: Tdarr
    subfolders: true
    filters:
      - extension: mkv
      - lastmodified:
          minutes : 10
    actions:
      - move:
          dest: G:\
          on_conflict: rename_new
          rename_template: "{name}-{counter}{extension}"

tordenflesk avatar Jan 20 '24 17:01 tordenflesk

Thanks for the config!

I'm not sure what organize can so differently in this case. It's using the python stdlib file methods. Maybe it's a bug in upstream?

Can you expand on the environment? Is the mounted share a samba share? Which host are you running organize on?

tfeldmann avatar Jan 20 '24 20:01 tfeldmann

That's a UNC path, not mounted. \output contains thousands of files, and if i run this config i'm left with thousands of 0-byte files. This is also true if i move files with a similar config "the other way" and the remove hosts drive is full.

tordenflesk avatar Jan 20 '24 21:01 tordenflesk