swiftly/cli/iomanager.py
def os_path_to_client_path(self, os_path):
        """
        Converts an operating system path into a client path by
        replacing instances of os.path.sep with '/'.

        Note: If the client path contains any instances of '/'
        already, they will be replaced with '-'.
        """
        if os.path.sep == '/':
            return os_path
        return os_path.replace('/', '-').replace(os.path.sep, '/')
def os_path_to_client_path(self, os_path):
        """
        Converts an operating system path into a client path by
        replacing instances of os.path.sep with '/'.

        Note: If the client path contains any instances of '/'
        already, they will be replaced with '-'.
        """
        if os.path.sep == '/':
            return os_path
        return os_path.replace('/', '-').replace(os.path.sep, '/')
Converts an operating system path into a client path by
        replacing instances of os.path.sep with '/'.

        Note: If the client path contains any instances of '/'
        already, they will be replaced with '-'.