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

Add smart code to check the v1.0.0 pattern in geopackage name #1630

Open
rpachaly opened this issue Jan 23, 2025 · 1 comment
Open

Add smart code to check the v1.0.0 pattern in geopackage name #1630

rpachaly opened this issue Jan 23, 2025 · 1 comment
Assignees

Comments

@rpachaly
Copy link
Collaborator

No description provided.

@rpachaly rpachaly self-assigned this Jan 23, 2025
@rpachaly
Copy link
Collaborator Author

I added a smart code to adjust the file, gpkg, and project name.

Case 1: No Existing File
Input: lesson1_v1.1.0.gpkg
Output: lesson1_v3.0.0.gpkg

Case 2: One Existing File
If lesson1_v3.0.0.gpkg exists:
Output: lesson1_v3.0.0 (1).gpkg

Case 3: Multiple Existing Files
If lesson1_v3.0.0.gpkg, lesson1_v3.0.0 (1).gpkg, and lesson1_v3.0.0 (2).gpkg exist:
Output: lesson1_v3.0.0 (3).gpkg

Done and merged on #1631

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

No branches or pull requests

1 participant