- debug = open("debug", 'a')
- for i in range(3):
- time.sleep(2*i)
- pipe = os.popen("%s %s -l '%s' 2>/dev/null" % (obexftp_prog, obexftp_args, directory), 'r')
- listing = pipe.read()
- pipe.close()
-
- if listing:
- break
-
- debug.write("Cannot list '%s', retrying...\n" % directory)
+ pipe = os.popen("%s %s -l '%s' 2>/dev/null" % (obexftp_prog, obexftp_args, directory), 'r')
+ listing = pipe.read()
+ pipe.close()