Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -10,9 +10,21 @@
10 10 private final String mFileSubPath;
11 11 private final File mCanonicalPath;
12 12
13 + private FilePath( File pSomeParentDir, String pFileSubPath, File pCanonicalPath )
14 + {
15 + mSomeParentDir = pSomeParentDir;
16 + mFileSubPath = pFileSubPath;
17 + mCanonicalPath = pCanonicalPath;
18 + }
19 +
13 20 public FilePath( File pSomeParentDir, String pFileSubPath )
14 21 {
15 - mCanonicalPath = Utils.canonical( new File( mSomeParentDir = pSomeParentDir, mFileSubPath = pFileSubPath ) );
22 + this( pSomeParentDir, pFileSubPath, Utils.canonical( new File( pSomeParentDir, pFileSubPath ) ) );
23 + }
24 +
25 + public static FilePath canonical( File pSomeParentDir, String pFileSubPath )
26 + {
27 + return new FilePath( pSomeParentDir, pFileSubPath, new File( pSomeParentDir, pFileSubPath ) );
16 28 }
17 29
18 30 public File getSomeParentDir()