Fix posix path separator

This commit is contained in:
David Boucha 2013-03-21 21:01:53 -06:00
parent ccee2bfdf4
commit 2b46c89226

View File

@ -1236,7 +1236,7 @@ def recurse(name,
if include_empty:
mdirs = __salt__['cp.list_master_dirs'](env)
for mdir in mdirs:
if not mdir.startswith('{0}{1}'.format(srcpath, os.path.sep)):
if not mdir.startswith('{0}{1}'.format(srcpath, '/')): #same as above
continue
mdest = os.path.join(name, os.path.relpath(mdir, srcpath))
manage_directory(mdest)