Skip to content

Commit 8511943

Browse files
committed
Added comments
1 parent 8474fa0 commit 8511943

File tree

1 file changed

+5
-1
lines changed
  • src/filesystem/implementations

1 file changed

+5
-1
lines changed

src/filesystem/implementations/s3.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,11 @@ S3FileSystem::LocalizePath(
654654
effective_path = path;
655655
}
656656

657-
// Create a local directory for s3 model store
657+
// Create a local directory for s3 model store.
658+
// If `mount_dir` or ENV variable are not set,
659+
// creates a temporary directory under `/tmp` with the format: "folderXXXXXX".
660+
// Otherwise, will create a folder under specified directory with the name
661+
// indicated in path (i.e. everything after the last encounter of `/`).
658662
const char* env_mount_dir = std::getenv("TRITON_AWS_MOUNT_DIRECTORY");
659663
std::string tmp_folder;
660664
if (mount_dir.empty() && env_mount_dir == nullptr) {

0 commit comments

Comments
 (0)