Skip to content

Commit

Permalink
Create .xet/shard-session directory before tempdir_in (#114)
Browse files Browse the repository at this point in the history
* Each PFT uses isolated shard session directory

* fix linting

* fix bug
  • Loading branch information
seanses authored Dec 11, 2024
1 parent b9b7b10 commit a4b937d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data/src/data_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ pub fn default_config(
let (token, token_expiration) = token_info.unzip();
let auth_cfg = AuthConfig::maybe_new(token, token_expiration, token_refresher);

let shard_staging_directory = tempdir_in(xet_path.join("shard-session"))?;
let shard_staging_root = xet_path.join("shard-session");
std::fs::create_dir_all(&shard_staging_root)?;
let shard_staging_directory = tempdir_in(shard_staging_root)?;

let translator_config = TranslatorConfig {
file_query_policy: FileQueryPolicy::ServerOnly,
Expand Down

0 comments on commit a4b937d

Please sign in to comment.