mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-13 05:12:50 +00:00
debugging
This commit is contained in:
1 parent
bd8f2570e2
commit
bff0f9181d
2 files changed
+6
-1
No files matched your search
@@ -19,11 +19,14 @@ impl SaveDirectory {
|
||||
/// We'll be using a database and well-formed filesystem layout later.
|
||||
pub fn get_audio_files_dir_v1(&self) -> PathBuf {
|
||||
let result = self.directory.join("./audio_files");
|
||||
info!("{:?}", result.canonicalize());
|
||||
info!("SD(1): {:?}", result);
|
||||
info!("SD(2): {:?}", result.canonicalize());
|
||||
let result = result.canonicalize().unwrap_or(result);
|
||||
info!("SD(3): {:?}", result);
|
||||
let result = result.absolutize()
|
||||
.map(|file| file.to_path_buf())
|
||||
.unwrap_or(result);
|
||||
info!("SD(4): {:?}", result);
|
||||
result
|
||||
}
|
||||
}
|
||||
+2
@@ -66,6 +66,8 @@ pub async fn get_next_audio_file_handler(
|
||||
let maybe_audio_filename = format!("{}.wav", request.cursor);
|
||||
let maybe_audio_filename = audio_file_dir.join(maybe_audio_filename);
|
||||
|
||||
info!("Hypothetical audio file: {:?}", maybe_audio_filename);
|
||||
|
||||
let next_cursor;
|
||||
let mut audio_filename : Option<String> = None;
|
||||
|
||||
|
||||
Reference in new issue
Block a user