Subversion Repository Public Repository

litesoft

Diff Revisions 313 vs 361 for /trunk/Java/ScarPlus/src/com/esotericsoftware/filesystem/FilePath.java

Diff revisions: vs.
  @@ -27,6 +27,16 @@
27 27 return new FilePath( pSomeParentDir, pFileSubPath, new File( pSomeParentDir, pFileSubPath ) );
28 28 }
29 29
30 + private static FilePath innerAlreadyCanonical( File pFilePath )
31 + {
32 + return new FilePath( pFilePath.getParentFile(), pFilePath.getName(), pFilePath );
33 + }
34 +
35 + public static FilePath canonicalize( File pFilePath )
36 + {
37 + return innerAlreadyCanonical( Utils.canonical( pFilePath ) );
38 + }
39 +
30 40 public File getSomeParentDir()
31 41 {
32 42 return mSomeParentDir;