Skip to content

Instantly share code, notes, and snippets.

@knzm
Created June 20, 2012 06:04
Show Gist options
  • Select an option

  • Save knzm/2958374 to your computer and use it in GitHub Desktop.

Select an option

Save knzm/2958374 to your computer and use it in GitHub Desktop.
How to decode path generated by rsync
>>> print re.sub(r'\\#(\d{3})', lambda m: chr(int(m.group(1), 8)), s).decode('utf-8')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment