|
@ -170,10 +170,6 @@ impl Cache { |
|
|
);
|
|
|
);
|
|
|
let cache_dir_str =
|
|
|
let cache_dir_str =
|
|
|
format!("{}/image/{}x{}/{}", self.cache_dir, size, size, &sha1[..10]);
|
|
|
format!("{}/image/{}x{}/{}", self.cache_dir, size, size, &sha1[..10]);
|
|
|
println!("Test");
|
|
|
|
|
|
println!("{}", DEFAULT_CACHE_DIR);
|
|
|
|
|
|
println!("{}", &self.cache_dir);
|
|
|
|
|
|
// println!("Saving: {}", &cache_path_str);
|
|
|
|
|
|
match create_dir_all(&cache_dir_str) {
|
|
|
match create_dir_all(&cache_dir_str) {
|
|
|
Ok(_) => {
|
|
|
Ok(_) => {
|
|
|
let file_path = Path::new(&cache_path_str);
|
|
|
let file_path = Path::new(&cache_path_str);
|
|
|