prashantsengar/ArrangePy

Clean up the code

Closed this issue · 10 comments

The first step towards great code is clean code.

Let's start by cleaning up the code. You will require basic Python knowledge and PEP guidelines. (know what is PEP 8 )

Make the code more efficient, and more modular.

I would like to do this. Please assign it to me.

Thanks

I ran the arrange.py once for weak arrange but none of the folders were created.
After running once it is giving file already exists error while I'm not able to see any folders anywhere.
Traceback (most recent call last):
File "arrange.py", line 15, in <module>
makeFolders('pPDF')
File "arrange.py", line 13, in makeFolders
os.mkdir(f'.\\{f}')
FileExistsError: [Errno 17] File exists: '.\\pPDF'
What if there are no files in the folder(in my case) what will be its behaviour.

@sid779 it was a small error because I was writing it in Windows. It will be fixed by very soon

I would like to do this.

@chavarera this issue is being worked on by @sid779 and someone else too. If you'd like, you can choose other issues to work on or create a new issue.

As @chavarera already created a pull request and did the work required I'll unassign myself. Please merge the pull request.

why @prashantsengar not merging pull requests

He will eventually, just relax and try to resolve other issues.