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

Suggestion for Fixing rename file bug with termux uri #1009

Closed
techcodeofficial opened this issue Aug 19, 2024 · 6 comments
Closed

Suggestion for Fixing rename file bug with termux uri #1009

techcodeofficial opened this issue Aug 19, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@techcodeofficial
Copy link

Hello acode devloper for fix rename file error in acode you can copy file content and create new file with new name and insert content to new file and delete old file

@sebastianjnuwu
Copy link
Contributor

I think this fits with my problem.

@bajrangCoder
Copy link
Collaborator

Hello acode devloper for fix rename file error in acode you can copy file content and create new file with new name and insert content to new file and delete old file

Nice idea 👍

I will try to implement it but maybe we need to accept some performance decrement but that's acceptable

@bajrangCoder bajrangCoder added the enhancement New feature or request label Sep 1, 2024
@techcodeofficial
Copy link
Author

Yes it's nice Idea 💡
Thank you 🙏

@bajrangCoder
Copy link
Collaborator

This solution is not ideal for directories, so currently this is added for files only

@1Code-JS
Copy link

This solution is not ideal for directories, so currently this is added for files only

If AcodeX plugin is present and it's server is running on Termux, use mv command

Or (this method could probably cause performance issues if the directory (especially .git) has a lot of (sometimes large) files):

  1. Create a new directory with a new name
  2. If there's are files, move(if can't, copy file and then delete old one) it's files from the old directory to the new one
  3. Repeat steps 1 and 2 for subdirectories
  4. Delete old directory once all files have been moved

@bajrangCoder
Copy link
Collaborator

First is planned but that's plugin related.
And second method isn't ideal for directories, there will many new issues/errors

@bajrangCoder bajrangCoder changed the title Suggeste for Fix rename file bug Suggestion for Fixing rename file bug with termux uri Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants