From cf6fe5fd2af858939d51665b41b937dc95e33ad9 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 19 Sep 2014 22:39:20 +0000 Subject: [PATCH] Delete apparently defunct script --- direct/src/plugin/FileSpec.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 direct/src/plugin/FileSpec.py diff --git a/direct/src/plugin/FileSpec.py b/direct/src/plugin/FileSpec.py deleted file mode 100755 index 493d3a3652..0000000000 --- a/direct/src/plugin/FileSpec.py +++ /dev/null @@ -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)