MCPcopy Create free account
hub / github.com/GCWing/BitFun / create_session_log_dir

Function create_session_log_dir

src/apps/cli/src/logging.rs:228–233  ·  view source on GitHub ↗
(logs_root: &Path)

Source from the content-addressed store, hash-verified

226}
227
228pub fn create_session_log_dir(logs_root: &Path) -> PathBuf {
229 let timestamp = Local::now().format(SESSION_DIR_FORMAT).to_string();
230 let session_dir = logs_root.join(timestamp);
231 fs::create_dir_all(&session_dir).ok();
232 session_dir
233}
234
235pub fn build_log_paths(session_log_dir: &Path) -> CliLogPaths {
236 CliLogPaths {

Calls 4

create_dir_allFunction · 0.85
formatMethod · 0.80
joinMethod · 0.45
okMethod · 0.45