Skip to content

Commit

Permalink
Change default dir mode to 3775 to prevent users interfering with eac…
Browse files Browse the repository at this point in the history
…h other
  • Loading branch information
florianziemen authored Nov 14, 2024
1 parent 89aec73 commit ff06e9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slkspec/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class SLKFile(io.IOBase):
't' text mode
file_permissions: int, default: 0o644
Permission when creating files.
dir_permissions: int, default: 0o2775
dir_permissions: int, default: 0o3775
Permission when creating directories. **kwargs:
Additional keyword arguments passed to the open file descriptor method.
Expand Down Expand Up @@ -95,7 +95,7 @@ def __init__(
mode: str = "rb",
touch: bool = False,
file_permissions: int = 0o644,
dir_permissions: int = 0o2775,
dir_permissions: int = 0o3775,
delay: int = 2,
_lock: threading.Lock = _retrieval_lock,
_file_queue: Queue[Tuple[str, str]] = FileQueue,
Expand Down Expand Up @@ -271,7 +271,7 @@ class SLKFileSystem(AbstractFileSystem):
Some indication of buffering - this is a value in bytes
file_permissions: int, default: 0o644
Permission when creating files.
dir_permissions: int, default: 0o2775
dir_permissions: int, default: 0o3775
Permission when creating directories.
override: bool, default: False
Expand All @@ -292,7 +292,7 @@ def __init__(
block_size: Optional[int] = None,
slk_cache: Optional[Union[str, Path]] = None,
file_permissions: int = 0o644,
dir_permissions: int = 0o2775,
dir_permissions: int = 0o3775,
touch: bool = False,
delay: int = 2,
override: bool = False,
Expand Down

0 comments on commit ff06e9d

Please sign in to comment.