blender/scripts/modules/_bpy_internal/filesystem
Sybren A. Stüvel 04e8d5be94 Fix #158917: Permission Denied syncing a Remote Asset Library
Fix a bug in the file locking mechanism that's used to ensure only a
single Blender instance syncs a remote asset library's listing.

The file locking in Windows actually locks a specific byte offset. This
offset MUST be the same in the unlock call. This was failing, because
downloading a file tends to write to it. Adding `the_file.seek(0)` to
both lock & unlock functions now ensures the same offset is (un)locked,
regardless of what the caller does with the files.

Pull Request: https://projects.blender.org/blender/blender/pulls/159063
2026-05-25 19:40:51 +02:00
..
__init__.py
locking.py Fix #158917: Permission Denied syncing a Remote Asset Library 2026-05-25 19:40:51 +02:00