@classmethod
def from_path(cls, path, dirname=None):
    """Construct instance of this type from full path name.

        :param str: (unicode) string representing path
        :param str dirname: optional prefix directory
        """
    if len(path) > 2 and path[0].isalpha() and path[1] == ':':
        path = path[2:]
    path = path.replace('\\', '/').lstrip('/')
    return cls(path.split('/'), dirname)
