diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2020-06-19 19:47:03 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2020-06-19 19:47:03 -0400 |
| commit | 4e9f8ff708dae197416e17fca29862194de4c25a (patch) | |
| tree | c5f19def622a47a5ddb707748a0ea06b82ff0811 /src | |
| parent | 418d11a56270aef27ca74419c8a617fdc5195f7b (diff) | |
[birka-web] handle unused `symlink` Err.
Diffstat (limited to 'src')
| -rw-r--r-- | src/birka-web.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/birka-web.rs b/src/birka-web.rs index e9bb81a..b4d1d12 100644 --- a/src/birka-web.rs +++ b/src/birka-web.rs @@ -312,6 +312,10 @@ fn add_to_store(file: &database::File, file_dir: &str) { let store_path = store_filename(file.id, &file.path); let store_path = Path::new(file_dir).join(store_path); symlink(&file.path, &store_path).ok(); + if !store_path.exists() { + panic!("could not create symlink {:?}!", store_path); + } + let thumb_path = thumb_filename(file.id, &file.path); let thumb_path = Path::new(file_dir).join(&thumb_path); if !thumb_path.exists() { |