Skip to content

Fix folder copying to sibling folder with almost the same name #620

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

Merged
merged 14 commits into from
Apr 26, 2020
Merged

Fix folder copying to sibling folder with almost the same name #620

merged 14 commits into from
Apr 26, 2020

Conversation

tsvietOK
Copy link
Contributor

To reproduce this bug create folder with name "Some Folder" and another sibling folder with name "Some Folder 1". Try to copy or move first folder in second.

tsvietOK and others added 7 commits April 15, 2020 13:22
Get other default folders locations same way
…remove space before .dll (#604)

* Remove space before .dll

* Add Invert Selection, fix folder navigation crash

Also fixes critical bug where a folder is deleted
if it's moved into itself and the user presses skip

* Add multiligual resources for new string
* Prevent crash on opening new tab from folder

* Prevent opening multiple new tabs from blocking the UI

* Remove TabView Transition Animations

* Fix Item Thumbnails not Loading

* Ensure file type property is loaded
@ghost ghost added the needs - code review label Apr 18, 2020
@lukeblevins
Copy link
Contributor

@tsvietOK Hi thanks for this PR.

The original issue that this block of code tried to solve was users copying a folder into itself. Does this change still prevent all instances of a destination folder being a subfolder of the source folder?

image

@tsvietOK
Copy link
Contributor Author

@duke7553 hmmm, your right, i didn't test this case. I have to find another workaround.

@lukeblevins
Copy link
Contributor

@tsvietOK I'll mark this as a draft for now then.

@lukeblevins lukeblevins marked this pull request as draft April 18, 2020 18:19
@tsvietOK
Copy link
Contributor Author

@lukeblevins
Copy link
Contributor

@tsvietOK That looks pretty good to me

@tsvietOK
Copy link
Contributor Author

@duke7553 do you have troubles with folder copying?

@lukeblevins
Copy link
Contributor

@tsvietOK Do you want me to test this now? I can mark this as ready for review.

@tsvietOK
Copy link
Contributor Author

@duke7553 If your copy function working fine, of course.

@tsvietOK
Copy link
Contributor Author

@duke7553 did you tested it?

@lukeblevins lukeblevins marked this pull request as ready for review April 23, 2020 03:47
@ghost ghost added the needs - code review label Apr 23, 2020
@yaira2
Copy link
Member

yaira2 commented Apr 24, 2020

@tsvietOK Can you merge with the latest from develop?

@yaira2
Copy link
Member

yaira2 commented Apr 24, 2020

Before merging, this should be tested to make sure that the changes work in release mode.

@tsvietOK
Copy link
Contributor Author

@yaichenbaum Part with subfolder detection working fine for me. Another thing, we currently don't supporting Windows's path length limit(as i understand 260 characters)

@yaira2
Copy link
Member

yaira2 commented Apr 26, 2020

@tsvietOK I would think that is a different issue, right?

@tsvietOK
Copy link
Contributor Author

@yaichenbaum Yes, your right

@yaira2 yaira2 merged commit bb40b4f into files-community:develop Apr 26, 2020
@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Apr 26, 2020
@tsvietOK tsvietOK deleted the subfolder-copy-fix branch April 27, 2020 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants