Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

wsgidav.util.getETag

wsgidav.util.getETag(filePath)[source]

Return a strong Entity Tag for a (file)path.

http://www.webdav.org/specs/rfc4918.html#etag

Returns the following as entity tags:

Non-file - md5(pathname)
Win32 - md5(pathname)-lastmodifiedtime-filesize
Others - inode-lastmodifiedtime-filesize