Skip to content

Conversation

@Joaqim
Copy link

@Joaqim Joaqim commented May 16, 2025

This is a re implementation of a previous un-merged commit: d980e29 for issue #136

Full disclosure; while these changes are working for me so far with version 8.0.0, I'm a complete novice at working with Rust.

Most of these changes where assisted by use of an LLM, and I'm completely fine with some one taking over and doing a complete re-write as I'm not sure I followed best practices for my implementation.

If anyone does take this on, I would recommend starting from a05fd8b as it mostly contains previous changes by @ikatson from branch: seed-read-only

Joaqim added 2 commits May 13, 2025 05:28
…t which stores boolean whether file is writeable or not

* New FileHandle struct: { file: File, is_writeable: bool }
* Replace `OpenedFile::file:  RwLock<Option<File>>` with `::file_handle RwLock<Option<FileHandle>>`
@ikatson
Copy link
Owner

ikatson commented May 16, 2025

Hey thanks for working on this. On a quick look from phone, I don't see anything that will make the file read only after it completed downloading. You mentioned it works as expected though, am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants