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

Overwrites images of same name in dest #13

Open
FraidOfWater opened this issue Nov 1, 2024 · 1 comment
Open

Overwrites images of same name in dest #13

FraidOfWater opened this issue Nov 1, 2024 · 1 comment

Comments

@FraidOfWater
Copy link
Contributor

FraidOfWater commented Nov 1, 2024

The program currently overwrites images with the same name. Regards "Move and moveall" from sortimages_multiview.py. Example: "test.png" in source and "test.png" in dest, the one in source will overwrite the one in dest, deleting it. Just a fair warning for any users.
We should check whether an image with that name already exists in destination before moving. We could do
temp = os.path.join(destpath, self.name.get()) if os.path.exists(temp): return ("")
before me move the picture to cancel the move.

@FraidOfWater
Copy link
Contributor Author

Made a pull request to fix it.

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

1 participant