else: raise
def publish(src,target):
- cmd = ["rsync","-a",src,target]
+ cmd = ["rsync","-a","--delete",src,target]
retcode = subprocess.call(cmd)
if retcode:
print 'Error: '+' '.join(cmd)+' Returncode ['+str(retcode)+']'
sitemap.append(dict(link=f))
except IOError, what_error:
print 'Sitemap missing - generating one.'
+
for dirname, dirnames, filenames in os.walk('.'):
for filename in filenames:
if fnmatch.fnmatch(filename, '*.xml'):