Method
temp_session_path
(&self, session_id: &str)
Source from the content-addressed store, hash-verified
| 1156 | } |
| 1157 | |
| 1158 | fn temp_session_path(&self, session_id: &str) -> PathBuf { |
| 1159 | let sequence = SESSION_TMP_SEQUENCE.fetch_add(1, Ordering::Relaxed); |
| 1160 | self.sessions_dir.join(format!( |
| 1161 | ".{}.json.{}.{}.tmp", |
| 1162 | session_id, |
| 1163 | std::process::id(), |
| 1164 | sequence |
| 1165 | )) |
| 1166 | } |
| 1167 | |
| 1168 | /// Returns the sessions directory path. |
| 1169 | pub fn sessions_dir(&self) -> &Path { |
Tested by
no test coverage detected