()
| 663 | @api.route("/settings/software/storage/uploads", methods=['DELETE']) |
| 664 | @restricted_access |
| 665 | def clearUploads(): |
| 666 | s = settings() |
| 667 | |
| 668 | try: |
| 669 | emptyFolder(s.get(['folder', 'uploads']) or s.getBaseFolder('uploads')) |
| 670 | return jsonify() |
| 671 | except Exception, e: |
| 672 | logger = logging.getLogger(__name__) |
| 673 | logger.info(e, exc_info= True) |
| 674 | return ("There was an error trying to clear your uploads.", 500) |
| 675 | |
| 676 | @api.route("/settings/software/system-info", methods=['GET']) |
| 677 | @restricted_access |
nothing calls this directly
no test coverage detected