This repository was archived by the owner on Mar 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -341,16 +341,11 @@ def delete(self, option):
341
341
def deleteFile (self , folder ,file ):
342
342
"""Deletes a file. Pass folder and file as parameters."""
343
343
if folder .startswith ("http://" + self .ip_addr ):
344
- self .getInfoFromURL (folder )
345
- if self .whichCam () == "gpcontrol" :
346
- print (self .gpControlCommand ("storage/delete?p=" + self .getInfoFromURL (folder )[0 ] + "/" + self .getInfoFromURL (folder )[1 ]))
347
- else :
348
- print (self .sendCamera ("DF" ,self .getInfoFromURL (folder )[0 ]+ "/" + self .getInfoFromURL (folder )[1 ]))
344
+ folder , file = self .getInfoFromURL (folder )
345
+ if self .whichCam () == "gpcontrol" :
346
+ print (self .gpControlCommand ("storage/delete?p=" + folder + "/" + file ))
349
347
else :
350
- if self .whichCam () == "gpcontrol" :
351
- print (self .gpControlCommand ("storage/delete?p=" + folder + "/" + file ))
352
- else :
353
- print (self .sendCamera ("DF" ,folder + "/" + file ))
348
+ print (self .sendCamera ("DF" ,"/" + folder + "/" + file ))
354
349
def locate (self , param ):
355
350
"""Starts or stops locating (beeps camera)"""
356
351
if self .whichCam () == "gpcontrol" :
You can’t perform that action at this time.
0 commit comments