GSA-333 Meant to use getAbsolutePath and not deref symlinks.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3449 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
kshakir 2010-05-27 21:23:02 +00:00
parent e2674671e7
commit 0e3c76ab84
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class QFile(val fileType: String, val parts: String*) {
def matchesFile(path: String): Boolean = matchesFile(new File(path))
def matchesFile(file: File): Boolean = file.getCanonicalPath.endsWith(extension)
def baseName(path: String): String = baseName(new File(path))
def baseName(file: File): String = StringUtils.removeEnd(file.getCanonicalPath, extension)
def baseName(file: File): String = StringUtils.removeEnd(file.getAbsolutePath, extension)
def fullName(baseName: String) = baseName + extension
}