mirror of
https://github.com/chatmail/core.git
synced 2026-04-23 00:16:34 +03:00
remove >1y old file path migration which is now uneeded and has potential issues
This commit is contained in:
committed by
holger krekel
parent
98266f47d6
commit
b8057b7ddb
@@ -235,13 +235,6 @@ pub(crate) fn dc_extract_grpid_from_rfc724_mid(mid: &str) -> Option<&str> {
|
||||
None
|
||||
}
|
||||
|
||||
pub(crate) fn dc_ensure_no_slash_safe(path: &str) -> &str {
|
||||
if path.ends_with('/') || path.ends_with('\\') {
|
||||
return &path[..path.len() - 1];
|
||||
}
|
||||
path
|
||||
}
|
||||
|
||||
// Function returns a sanitized basename that does not contain
|
||||
// win/linux path separators and also not any non-ascii chars
|
||||
fn get_safe_basename(filename: &str) -> String {
|
||||
|
||||
Reference in New Issue
Block a user