parse_path#

barecat.maintenance.rsync.parse_path(path)[source]#

Parse a path with new syntax.

Syntax:

:: = archive inner path delimiter : after host = SSH remote :: = literal :: in path \ = literal in path

Examples

‘./data/’ -> local directory ‘./archive.barecat::’ -> local archive root ‘./archive.barecat::images/’ -> local archive inner path ‘./my:::weird.barecat::’ -> file named ‘my::weird.barecat’ ‘host:/path/dir/’ -> SSH remote directory ‘host:/path/archive.barecat::’ -> SSH remote archive ‘user@host:/path/archive.barecat::train/’ ‘barecat://host:50003/archive::images/’

Parameters:

path (str)

Return type:

ParsedPath