Skip to content

Commit 63a8d42

Browse files
Alfonso CastañoThe TensorFlow Datasets Authors
authored andcommitted
Restore 775 as default access mode
PiperOrigin-RevId: 655497946
1 parent d975293 commit 63a8d42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tensorflow_datasets/core/dataset_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ def download_and_prepare(
583583
download_dir: epath.PathLike | None = None,
584584
download_config: download.DownloadConfig | None = None,
585585
file_format: str | file_adapters.FileFormat | None = None,
586-
permissions: file_utils.Permissions | None = None,
586+
permissions: file_utils.Permissions = file_utils.Permissions(mode=0o775),
587587
) -> None:
588588
"""Downloads and prepares dataset for reading.
589589
@@ -594,8 +594,8 @@ def download_and_prepare(
594594
downloading and preparing dataset.
595595
file_format: optional `str` or `file_adapters.FileFormat`, format of the
596596
record files in which the dataset will be written.
597-
permissions: optional permissions to set on the generated folder and
598-
files.
597+
permissions: permissions to set on the generated folder and files.
598+
Defaults to 0o775 instead of gFile's default 0o750.
599599
600600
Raises:
601601
IOError: if there is not enough disk space available.

0 commit comments

Comments
 (0)