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 API Function to Move Files #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kilo52
Copy link
Member

@kilo52 kilo52 commented Dec 14, 2024

Adds the move_file() API function.

The function is added to provide a standard way of moving files within a project target directory, both when in form-based as well as in Quickstart mode. It automatically performs some safety checks and lets the underlying initialization process fail if a file cannot be moved, which should be the default anyway because otherwise that would mean that the project cannot be initialized as the init code author intended. Therefore, by using this function the call site becomes cleaner as the error handling code can be omitted.

This function is added to provide a standard way of moving files within a
project target directory, both when in form-based as well as
in Quickstart mode. It automatically performs some safety checks and lets the
underlying initialization process fail if a file cannot be moved, which should
be the default anyway because otherwise that would mean that the project
cannot be initialized as the init code author intended. Therefore, by using
this function the call site becomes cleaner as the error handling
code can be omitted.
@kilo52 kilo52 added the Feature New feature label Dec 14, 2024
@kilo52 kilo52 linked an issue Dec 14, 2024 that may be closed by this pull request
@kilo52 kilo52 self-assigned this Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Function to Move Template Files
1 participant