From 55368b8d1784d40cec8b47e0d27b263b17307150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B0=D0=BC=D0=BE=D1=83=D0=BA=D0=B8=D0=BD=20=D0=90?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?= Date: Wed, 24 Mar 2010 15:04:36 +0300 Subject: [PATCH] Cancelled move hidden files from the directory ~/Desktop to the directory ~/Moved --- pym/cl_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/cl_client.py b/pym/cl_client.py index d225924..07d8ea4 100644 --- a/pym/cl_client.py +++ b/pym/cl_client.py @@ -2418,12 +2418,12 @@ or ld_bind_dn or ld_bind_pw") os.unlink(fd) else: filesDir.append(fd) - # Нахождение файлов отличных от иконок и ссылок в Desktop + # Нахождение файлов отличных ссылок и .* в Desktop pathDesktop = './Desktop' filesDirDesk = [] if os.path.exists(pathDesktop): filesDirDesk = filter(lambda x: not os.path.islink(x) and\ - not x.rpartition('.')[2]=='desktop',\ + not x.startswith('.'),\ map(lambda x: os.path.join(pathDesktop,x),\ os.listdir(pathDesktop))) movedPathDesk = os.path.join(movedPath, pathDesktop)