Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added removeFile()

  • Loading branch information...
commit ed6006b60995fec3f78fc3940595077df82fcdfe 1 parent 040d956
Sebastian Werner authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 jasy/env/File.py
View
9 jasy/env/File.py
@@ -16,6 +16,15 @@ def removeDir(dirname):
shutil.rmtree(dirname)
+def removeFile(filename):
+ """Removes the given file"""
+
+ filename = prependPrefix(filename)
+ if os.path.exists(filename):
+ logging.info("Deleting file %s" % filename)
+ os.remove(filename)
+
+
def makeDir(dirname):
"""Creates missing hierarchy levels for given directory"""
Please sign in to comment.
Something went wrong with that request. Please try again.