Skip to content

Commit

Permalink
Merge pull request #148 from RickyDane/task/some_stuff
Browse files Browse the repository at this point in the history
Task/some stuff
  • Loading branch information
RickyDane authored Dec 14, 2024
2 parents 266b08c + 12467d1 commit 6933321
Show file tree
Hide file tree
Showing 7 changed files with 3,869 additions and 3,865 deletions.
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
17 changes: 10 additions & 7 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 @@ -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

0 comments on commit 6933321

Please sign in to comment.