mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-09-15 17:18:38 +00:00
14 lines
411 B
Python
14 lines
411 B
Python
"""Shared upload validation and publication errors."""
|
|
|
|
|
|
class PathTraversalError(ValueError):
|
|
"""Raised when a path escapes its allowed base directory."""
|
|
|
|
|
|
class UnsafeUploadPathError(ValueError):
|
|
"""Raised when an upload destination is not a safe regular file path."""
|
|
|
|
|
|
class AtomicUploadPublishError(UnsafeUploadPathError):
|
|
"""Raised when storage cannot honor atomic no-replace publication."""
|