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:
parent
e2674671e7
commit
0e3c76ab84
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue