Mercurial > hg4j
comparison src/org/tmatesoft/hg/util/RegularFileStats.java @ 429:cd658b24a620
FIXMEs: javadoc, proper use of constants
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 29 Mar 2012 18:29:03 +0200 |
parents | 48f993aa2f41 |
children | 909306e412e2 |
comparison
equal
deleted
inserted
replaced
428:ead6c67f3319 | 429:cd658b24a620 |
---|---|
100 symlinkValue = null; | 100 symlinkValue = null; |
101 // | 101 // |
102 // can't check isFile because Java would say false for a symlink with non-existing target | 102 // can't check isFile because Java would say false for a symlink with non-existing target |
103 if (f.isDirectory()) { | 103 if (f.isDirectory()) { |
104 // perhaps, shall just collect stats for all files and set false to exec/link flags? | 104 // perhaps, shall just collect stats for all files and set false to exec/link flags? |
105 throw new IllegalArgumentException(); // FIXME EXCEPTIONS | 105 throw new IllegalArgumentException(); |
106 } | 106 } |
107 final String dirName = f.getParentFile().getAbsolutePath(); | 107 final String dirName = f.getParentFile().getAbsolutePath(); |
108 final String fileName = f.getName(); | 108 final String fileName = f.getName(); |
109 Map<String, String> links = dir2links.get(dirName); | 109 Map<String, String> links = dir2links.get(dirName); |
110 Set<String> execs = dir2execs.get(dirName); | 110 Set<String> execs = dir2execs.get(dirName); |