Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
</p>
</a>

<p align="center">
<a href="https://discord.gg/zSE27rjdzp">
<img src="https://dcbadge.limes.pink/api/server/https://discord.gg/zSE27rjdzp" />
</a>
</p>

<a href="https://github.com/RickyDane/CoDriver/actions/workflows/main.yml"><p align="center"><img src="https://github.com/RickyDane/CoDriver/actions/workflows/main.yml/badge.svg?branch=master"></p></a>
<p align="center">
A simple file explorer that was born because I wanted to learn the Rust language.
Expand Down Expand Up @@ -141,7 +147,7 @@ sudo dnf group install "C Development Tools and Libraries"
| macOS | Linux | Windows |
| ----- | ----- | ------- |
| fuse-t <br/> fuse-t-sshfs | libfuse | Not supported **_yet_** |

### Installation:
#### macOS
```
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# cargo-features = ["profile-rustflags"]
[package]
name = "CoDriver"
version = "0.4.9"
version = "0.4.95"
description = "A simple file explorer"
authors = ["Ricky Dane Perlick"]
license = "BSD-2-Clause license"
Expand Down
21 changes: 12 additions & 9 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use chrono::prelude::{DateTime, Utc};
use copy_dir::copy_dir;
use chrono::prelude::DateTime;
use chrono::Local;
#[allow(unused)]
use delete::{delete_file, rapid_delete_dir_all};
use flate2::read::GzDecoder;
Expand Down Expand Up @@ -54,8 +54,8 @@ use archiver_rs::Compressed;
mod rdpfs;
use substring::Substring;

static mut LAST_DIR: String = String::new();
static mut ISCANCELED: bool = false;

static mut PATH_HISTORY: Vec<String> = vec![];

// #[cfg(target_os = "windows")]
Expand Down Expand Up @@ -140,7 +140,7 @@ fn main() {
log,
get_config_location,
get_sshfs_mounts,
unmount_network_drive
unmount_network_drive,
])
.plugin(tauri_plugin_drag::init())
.run(tauri::generate_context!())
Expand Down Expand Up @@ -520,12 +520,15 @@ async fn list_dirs() -> Vec<FDir> {
.nth(&path.split(".").count() - 1)
.unwrap_or("");
let file_data = fs::metadata(&temp_item.path());
let file_date: DateTime<Utc>;
let file_date: DateTime<Local>;
let size = temp_item.metadata().unwrap().len();
if file_data.is_ok() {
file_date = file_data.unwrap().modified().unwrap().clone().into();
} else {
file_date = Utc::now();
match file_data {
Ok(file_data) => {
file_date = file_data.modified().unwrap().clone().into();
}
Err(_) => {
file_date = Local::now();
}
}
let is_dir_int = match temp_item.path().is_dir() {
true => 1,
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "CoDriver",
"version": "0.4.9"
"version": "0.4.95"
},
"tauri": {
"bundle": {
Expand Down
Loading