MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / _on_rm_error

Function _on_rm_error

demo/app.py:188–191  ·  view source on GitHub ↗
(func, path, exc_info)

Source from the content-addressed store, hash-verified

186## Removed sanitizer per request: do not mutate user-generated TeX
187
188def _on_rm_error(func, path, exc_info):
189 # fix "PermissionError: [Errno 13] Permission denied" for readonly files
190 os.chmod(path, stat.S_IWRITE)
191 func(path)
192
193def _copytree(src: Path, dst: Path, symlinks=True, ignore=None):
194 if dst.exists():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected