Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replicated lines when import and overwrite a text file #153

Open
alexxxmas opened this issue Jun 30, 2022 · 3 comments
Open

replicated lines when import and overwrite a text file #153

alexxxmas opened this issue Jun 30, 2022 · 3 comments

Comments

@alexxxmas
Copy link

On latest droidFS 1.10.1

When I "Import/Encrypt files" on an existing text file, then there is this warning:
"Warning !
text.txt already exists, do you want to overwrite it?"
I click "Yes"
And the text file is not overwritten, but there is some kind of weird incremental change with duplicate lines.
My encrypted text file is much longer than the original.

@hardcore-sushi
Copy link
Owner

I think it's because the files are not truncated after being overwritten. Can you send 2 files (the imported one and the overwritten one) that trigger this bug please?

@alexxxmas
Copy link
Author

alexxxmas commented Aug 10, 2022

Hi @hardcore-sushi

Here is the imported file (the last edit was removing 2 lines) :
todo1.txt
2022-08-10 Test1a
2022-08-10 Test2a
2022-08-10 Test3a

Here is the overwritten file inside DroidFS :
todo2.txt
2022-08-10 Test1a
2022-08-10 Test2a
2022-08-10 Test3a
2022-08-10 Test2b
2022-08-10 Test3a

So, every time I need previously to remove text files on droidFS before import/encrypt. It is a bit annoying.

@hardcore-sushi
Copy link
Owner

It may have been fixed with 2d19895. Can you try again with the latest alpha version please?

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

No branches or pull requests

2 participants