mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
Delete apparently defunct script
This commit is contained in:
parent
c178aba639
commit
cf6fe5fd2a
@ -1,21 +0,0 @@
|
||||
from pandac.PandaModules import HashVal
|
||||
|
||||
class FileSpec:
|
||||
""" Used by make_package and make_contents. Represents a single
|
||||
file in the directory, and its associated timestamp, size, and md5
|
||||
hash. """
|
||||
|
||||
def __init__(self, filename, pathname):
|
||||
self.filename = filename
|
||||
self.pathname = pathname
|
||||
|
||||
self.size = pathname.getFileSize()
|
||||
self.timestamp = pathname.getTimestamp()
|
||||
|
||||
hv = HashVal()
|
||||
hv.hashFile(pathname)
|
||||
self.hash = hv.asHex()
|
||||
|
||||
def getParams(self):
|
||||
return 'filename="%s" size="%s" timestamp="%s" hash="%s"' % (
|
||||
self.filename, self.size, self.timestamp, self.hash)
|
Loading…
x
Reference in New Issue
Block a user