Showing
1 changed file
with
0 additions
and
2 deletions
... | @@ -68,8 +68,6 @@ class FileDetail(APIView): | ... | @@ -68,8 +68,6 @@ class FileDetail(APIView): |
68 | file = 'media/'+path.split('/')[-1] | 68 | file = 'media/'+path.split('/')[-1] |
69 | user = request.user | 69 | user = request.user |
70 | s3_interface.download_file(s3_interface.BUCKET, user.username, file, path) | 70 | s3_interface.download_file(s3_interface.BUCKET, user.username, file, path) |
71 | - if os.path.exists(file): | ||
72 | - os.remove(file) | ||
73 | # TODO error | 71 | # TODO error |
74 | return Response({'file': file}) | 72 | return Response({'file': file}) |
75 | 73 | ... | ... |
-
Please register or login to post a comment