diff --git a/pym/cl_client.py b/pym/cl_client.py index 1425bc5..583cddb 100644 --- a/pym/cl_client.py +++ b/pym/cl_client.py @@ -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"):