A File path string representing the path to a file within a resource. :param value: the string path value :param file_url: the fully qualified url to the file on hydroshare.org :param checksum: the md5 checksum of the file

checksum property readonly

The md5 checksum of the file

extension: str property readonly

The extension of the file

folder: str property readonly

The folder the file is in

name: str property readonly

The filename

path: str property readonly

The path of the file

url property readonly

The url to the file on HydroShare

__new__(cls, value, file_url, checksum) special staticmethod

Create and return a new object. See help(type) for accurate signature.

Source code in hsclient/hydroshare.py
def __new__(cls, value, file_url, checksum):
    return super(File, cls).__new__(cls, value)