-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create scans in temporary folder. Closes #84
* Create scans in /tmp folder with link to static folder to serve scans Signed-off-by: Harisankar P S <[email protected]> * fix: return commented code to check if static folder exits Signed-off-by: Harisankar P S <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks * remove symlink and set folder as /tmp/sane_scan_srv * Serve file using send_file rather than linking file and placing in static (security reasons) * [pre-commit.ci] auto fixes from pre-commit.com hooks * Use tempfile and handle case that file does not exist * Use `tempfile.mkdtemp` --------- Signed-off-by: Harisankar P S <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: CoolCat467 <[email protected]>
- Loading branch information
1 parent
5548127
commit 8b8bc61
Showing
1 changed file
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters