Changed algorithm for searching files in the directory ~./Desktop

develop
Самоукин Алексей 14 years ago
parent 9f35f6f97f
commit 05bcf23f91

@ -2052,9 +2052,10 @@ or ld_bind_dn or ld_bind_pw")
pathDesktop = './Desktop'
filesDirDesk = []
if os.path.exists(pathDesktop):
filesDirDesk = map(lambda x: os.path.join(pathDesktop,x),\
filter(lambda x: not os.path.islink(x) or\
not x.rpartition('.')[2]=='desktop', os.listdir(pathDesktop)))
filesDirDesk = filter(lambda x: not os.path.islink(x) and\
not x.rpartition('.')[2]=='desktop',\
map(lambda x: os.path.join(pathDesktop,x),\
os.listdir(pathDesktop)))
movedPathDesk = os.path.join(movedPath, pathDesktop)
filesDir += filesDirDesk
if not filesDir or not os.path.exists("Home"):

Loading…
Cancel
Save