Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
fd0bfb8b3d |
@ -1,3 +1,3 @@
|
|||||||
#Build Number for ANT. Do not edit!
|
#Build Number for ANT. Do not edit!
|
||||||
#Mon Jul 08 16:57:36 EDT 2024
|
#Mon Jul 08 17:35:59 EDT 2024
|
||||||
build.number=724
|
build.number=726
|
||||||
|
@ -590,6 +590,11 @@ public class I2PCommonBrowser {
|
|||||||
* @return the found file or null if not found
|
* @return the found file or null if not found
|
||||||
*/
|
*/
|
||||||
public File searchFile(File directory, String search) {
|
public File searchFile(File directory, String search) {
|
||||||
|
File hd = new File(System.getProperty("user.home"));
|
||||||
|
if (hd != null) {
|
||||||
|
if (directory.getAbsolutePath().equals(hd.getAbsolutePath()))
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (directory == null || !directory.exists() || !directory.canRead())
|
if (directory == null || !directory.exists() || !directory.canRead())
|
||||||
return null;
|
return null;
|
||||||
if (directory.isDirectory()) {
|
if (directory.isDirectory()) {
|
||||||
|
Reference in New Issue
Block a user