Dear developer team, Would you please be so kind to have a look at my mail below which I also addressed to the user group.
I'd be very thankful to get a constructive answer so I can continue my project. Kind regards Erturul SINAN SinSoft - CSV & IT-Management Biebricher Allee 11 D-65187 Wiesbaden GERMANY Mobile: +49 - (0)178 - 400 97 55 Mailto: sins...@web.de Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent of a system responsible for delivering the message to the intended recipient, is prohibited. If you are not the intended recipient, please inform the sender and delete all copies and attachments. Thank you for your cooperation. -------- Forwarded Message -------- Subject: Number of files in folder problem Date: Sun, 12 Jul 2020 14:20:45 +0200 From: Erturul Sinan <sins...@web.de> To: gphoto-u...@lists.sourceforge.net Ladies and Gentlemen, first of all, sorry for the disturbance. I have one question and I hope there is someone out there who can give me an answer. I am using the following command winthin a python script to filnd out how many images are still on the SD-Card of the camera. / filesInFolder = ["gphoto2", "--folder", "/store_00010001/DCIM/100NCD90", "--num-files"] call(filesInFolder) / This command works fine and I get as an aswer "Number of files in folder '/store_001001/DCIM/100NCD90': 6" Since the command is assigned to a variable (/filesInFolder) /and when I try to print out the content of the variable with / print("Num Files = ", filesInFolder)/ I get the message "Num Files = 0" . I cannot get access to the correct number of 6. How can I do that? Now my question is: How can I get access to the correct number of files (6) and assign it to a variable to get it printed out or to process it in further actions? Because 0 (zero) is definitive the wrong number. What I need is just the number itself, like in this case (6) Thank you for your help. H A N D -- Kind regards Erturul SINAN SinSoft - CSV & IT-Management Biebricher Allee 11 D-65187 Wiesbaden GERMANY Mobile: +49 - (0)178 - 400 97 55 Mailto: sins...@web.de Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent of a system responsible for delivering the message to the intended recipient, is prohibited. If you are not the intended recipient, please inform the sender and delete all copies and attachments. Thank you for your cooperation.
_______________________________________________ Gphoto-devel mailing list Gphoto-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gphoto-devel