Skip to content

Creating infinite subdirectories when folder is pasted in itself #795

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

Closed
zaevimn opened this issue Mar 10, 2023 · 1 comment
Closed

Creating infinite subdirectories when folder is pasted in itself #795

zaevimn opened this issue Mar 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@zaevimn
Copy link

zaevimn commented Mar 10, 2023

I'm new to neo-tree, been using neovim for over a month now. I was practicing it and yanked (y) a folder and paste inside itself and it gave weird error, when i looked folder structure i had infinite nested same folders. it created copies inside itself, and stopped at some point too (not really infinite). It created copies and each sub directory (and it's content) is taking up space in memory.
Screenshot from 2023-03-10 22-57-12
Screenshot from 2023-03-10 22-57-36

I'm using arch linux, kernel linux-lts.

@zaevimn
Copy link
Author

zaevimn commented Mar 10, 2023

I think it shouldn't allow destination to be inside source, file system like nautilus doesn't allow it.
Or it can first create a copy of folder somewhere else as temp than copy that temp in it. It'll be reading from temp folder and won't get into paradox of finding it's copy in itself while reading to copy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants