mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix CI build: add dependency for FileTimes
This commit is contained in:
parent
5e833597b5
commit
0edb0e1d9d
2 changed files with 3 additions and 1 deletions
|
@ -107,6 +107,7 @@ unicase.workspace = true
|
|||
unicode-normalization.workspace = true
|
||||
zip.workspace = true
|
||||
zstd.workspace = true
|
||||
filetime = "0.2"
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
windows.workspace = true
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
use std::borrow::Cow;
|
||||
use std::fs;
|
||||
use std::fs::FileTimes;
|
||||
use filetime::{FileTime, set_file_times};
|
||||
use std::io;
|
||||
use std::io::Read;
|
||||
use std::path::Path;
|
||||
|
@ -28,6 +28,7 @@ use unicode_normalization::UnicodeNormalization;
|
|||
|
||||
use crate::prelude::*;
|
||||
use crate::sync::media::MAX_MEDIA_FILENAME_LENGTH;
|
||||
use crate::media::files::safe_rename;
|
||||
|
||||
static WINDOWS_DEVICE_NAME: LazyLock<Regex> = LazyLock::new(|| {
|
||||
Regex::new(
|
||||
|
|
Loading…
Reference in a new issue