Skip to content

Commit

Permalink
🚀 V2.2.0
Browse files Browse the repository at this point in the history
- ✨ Add logs
  - they are write in `dirs::data_local_dir()`
- ✨ Change config file extension from `.conf.toml` to `.facf`
  - (but files with `.conf.toml` extension still works
- ✨ Allow relative path in config file
- 🩹 Change chanel type and add wait for big folders
  • Loading branch information
Jimskapt committed Jun 3, 2024
1 parent 953d1a9 commit 1508386
Show file tree
Hide file tree
Showing 10 changed files with 299 additions and 37 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
**/*.conf.toml
**/*.facf
/output.log
/fractus-atlas
/src-front/wasm/
Expand Down
168 changes: 165 additions & 3 deletions 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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
[![issues](https://img.shields.io/github/issues-raw/Jimskapt/fractus-atlas?color=blue)](https://github.com/Jimskapt/fractus-atlas/issues)
[![Rust cargo multi-platform compilation](https://github.com/Jimskapt/fractus-atlas/workflows/Rust%20cargo%20multi-platform%20compilation/badge.svg)](https://github.com/Jimskapt/fractus-atlas/actions/)

> Fractus Atlas is an image viewer which allows you to quickly move them in folders.
> Fractus Atlas is an image viewer that lets you move images quickly into folders.
💾 You can download this program on [releases tab](https://github.com/Jimskapt/fractus-atlas/releases).
2 changes: 1 addition & 1 deletion common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "common"
version = "2.1.0"
version = "2.2.0"
edition = "2021"
publish = false

Expand Down
7 changes: 5 additions & 2 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "fractus-atlas"
version = "2.1.0"
description = "An image viewer which allows you to quickly move them in folders."
version = "2.2.0"
description = "An image viewer that lets you move images quickly into folders"
homepage = "https://github.com/Jimskapt/fractus-atlas"
repository = "https://github.com/Jimskapt/fractus-atlas"
keywords = ["image", "images", "fast", "browsing", "viewer", "folder", "folders", "sort", "sorting"]
Expand Down Expand Up @@ -36,6 +36,9 @@ async-recursion = "1.1.1"
notify = "6.1.1"
futures = "0.3.30"
open = "5.1.2"
log4rs = "1.3.0"
log = "0.4.21"
dirs = "5.0.1"

[features]
# this feature is used for production builds or when `devPath` points to the filesystem
Expand Down
10 changes: 9 additions & 1 deletion src-tauri/src/lib/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ pub async fn apply_action(
if let Some(output) = output_folder {
if let Some(image) = state.read().await.images.get(position) {
let old_path = image.get_current();
new_path = output.path.join::<String>(

let output_path = super::build_absolute_path(
&output.path,
rstate.settings_path.clone(),
);

std::fs::create_dir_all(&output_path).unwrap();

new_path = output_path.join::<String>(
image
.origin
.file_name()
Expand Down
Loading

0 comments on commit 1508386

Please sign in to comment.