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

Exporting project for iOS might overwrite files without warning #93222

Closed
davidpdrsn opened this issue Jun 16, 2024 · 2 comments
Closed

Exporting project for iOS might overwrite files without warning #93222

davidpdrsn opened this issue Jun 16, 2024 · 2 comments
Labels

Comments

@davidpdrsn
Copy link

davidpdrsn commented Jun 16, 2024

Tested versions

  • Reproducible in v4.2.2.stable.official [15073af]

System information

Godot v4.2.2.stable - macOS 14.5.0 - Vulkan (Forward+) - integrated Apple M2 Max - Apple M2 Max (12 Threads)

Issue description

I'm new to godot and had a project I wanted to export for iOS. During the export process you have to choose where to save it. Not knowing exactly which files would be created I thought I didn't want to pollute my project directory so instead I chose to save the files in the parent directory of where my project is. This resulted in godot creating a directory with the same name as the project itself, thus overwriting the project directory and deleting all the files. I don't have a backup so pretty sure I've lost two months of work 🙃

I think a warning that something is about to be overwritten would be good.

Steps to reproduce

  1. Make a project. Whats it contains shouldn't matter.
  2. Export the project for iOS to the parent directory of where the project is. So if project.godot is at /foo/bar/project.godot then export to /foo.
  3. The bar directory containing all the files has now been overwritten and contains part of the Xcode project. The project itself is gone.

Not sure that one must export for iOS but thats the only target I tested.

Minimal reproduction project (MRP)

Works in any project but here is one that just contains a label:

Export Overwrite Demo.zip

@AThousandShips
Copy link
Member

Thank you for reporting, consolidating in:

See there for more details, if you think something was missed about this and it's not the same issue, please comment here and it can be reopened

@AThousandShips AThousandShips closed this as not planned Won't fix, can't repro, duplicate, stale Jun 16, 2024
@Calinou
Copy link
Member

Calinou commented Jun 16, 2024

I don't have a backup so pretty sure I've lost two months of work 🙃

You can probably look into using file forensic tools (not sure what's popular on macOS nowadays - I use good old PhotoRec), although you won't be able to recover filenames or their metadata, only their contents. Make sure to do this before writing too much stuff on the disk, or you won't be able to recover all files anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants