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

Incorrect method used to remove plugin/ if not needed. #2

Closed
lienzhuzhu opened this issue Dec 15, 2024 · 0 comments
Closed

Incorrect method used to remove plugin/ if not needed. #2

lienzhuzhu opened this issue Dec 15, 2024 · 0 comments

Comments

@lienzhuzhu
Copy link
Contributor

I just used this template and found that there is an incorrect line in the python script. If the user selects 'n' to the question asking if the plugin folder is needed or not, then line 45 of the script fails, as os.remove() only removes files, not directories. I will put in a pull request with the corrected line.

> python rename.py bug
Renamed files under plugin folder successed
Renamed files under lua folder successed
Ci yaml has been updated
Renamed files under doc folder successed
Do you need plugin folder in your plugin (y|n): n
Traceback (most recent call last):
  File "<my home directory>/nvim-projects/bug/rename.py", line 45, in <module>
    os.remove(os.path.join(os.getcwd(), 'plugin'))
PermissionError: [Errno 1] Operation not permitted: '<my home directory>/nvim-projects/bug/plugin'
@glepnir glepnir closed this as completed Dec 16, 2024
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