예제 #1
0
 public virtual bool isSubDirectory(File @base, File child)
 {
   @base = @base.getCanonicalFile();
   child = child.getCanonicalFile();
   for (File file = child; file != null; file = file.getParentFile())
   {
     if (@base.equals((object) file))
       return true;
   }
   return false;
 }