[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] rdiff-backup for windows has a problem with root di
From: |
ahd71 |
Subject: |
[rdiff-backup-users] rdiff-backup for windows has a problem with root directory |
Date: |
Mon, 18 Aug 2008 19:16:38 -0400 |
I'm not a python programmer, but I'm pretty sure that the problem is in this
code block were it doesn't work with c:\ but c:\dir works. Anyone with more
knowledge that can help?
Thanks /ahd71
def check_len(i):
if i >=
len(file_desc):
raise SetConnectionsException(
"Unexpected end to file description %s" %
file_desc)
host_info_list, i, last_was_quoted = [], 0,
None
while 1:
if i ==
len(file_desc):
return (None, file_desc)
if file_desc[i]
== '\\':
i = i+1
check_len(i)
last_was_quoted = 1
elif
(file_desc[i] == ":" and i > 0 and file_desc[i-1] ==
":"
and not last_was_quoted):
host_info_list.pop() # Remove last colon from name
break
else:
last_was_quoted = None
host_info_list.append(file_desc[i])
i = i+1
check_len(i+1)
return ("".join(host_info_list),
file_desc[i+1:])
+----------------------------------------------------------------------
|This was sent by address@hidden via Backup Central.
|Forward SPAM to address@hidden
+----------------------------------------------------------------------