abdoohossamm / djcompiler

django compiler that compiles the django project to a C language project which gives more performance and more security since the original code is hidden.
BSD 3-Clause "New" or "Revised" License
59 stars 6 forks source link

copy_needed_files may fail if the destination directory is otherwise empty. #16

Open jacobfnl opened 1 year ago

jacobfnl commented 1 year ago

This will happen if a directory is ignored, yet copy needed files includes a file in that directory.

django_project/
├── ignored_directory/
│   └── file_needed.py
├── app/
│   └── compiled_file.py
└── manage.py

compiled_file gets compiled, manage.py gets copied, but file_needed.py does not. FileNotFoundError exception