mirror of
https://github.com/MrBeanCpp/MIT.git
synced 2026-04-09 21:58:57 +08:00
fix: 修正get_tracked_files(),不需要判断文件是否存在于磁盘
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
use chrono::format::format;
|
||||
use sha1::{Digest, Sha1};
|
||||
use std::io::Write;
|
||||
use std::path::{Path, PathBuf};
|
||||
@@ -170,6 +169,10 @@ pub fn to_root_relative_path(path: &Path) -> PathBuf { //todo: rename
|
||||
get_relative_path(path, &get_working_dir().unwrap())
|
||||
}
|
||||
|
||||
pub fn to_workdir_absolute_path(path: &Path) -> PathBuf {
|
||||
get_working_dir().unwrap().join(path)
|
||||
}
|
||||
|
||||
fn is_executable(path: &str) -> bool {
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user