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

How change file name and folder name ? #7

Open
pntrinh opened this issue Mar 11, 2023 · 2 comments
Open

How change file name and folder name ? #7

pntrinh opened this issue Mar 11, 2023 · 2 comments

Comments

@pntrinh
Copy link

pntrinh commented Mar 11, 2023

my project folder is : abc but when I run archive project then it build abc_23423.zip and folder abc_23423
How I use current folder name and zip file name?

@FDiskas
Copy link
Member

FDiskas commented Mar 11, 2023

All files are zipped as they are, no additional folder are created. So if you right click on the archive and choose "extract here" you will get what you want.

@FDiskas
Copy link
Member

FDiskas commented Mar 12, 2024

I'm sorry for not getting back to you sooner - I reread your message.

The implementation is simplified - I took a workspace name and prefixed it on the timestamp - this way I don't need to deal with already existing archive files.

const archivePath = path.resolve(rootPath, `${projectName}_${Date.now()}.zip`);

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

2 participants