Skip to content

Commit

Permalink
[INLONG-9134][Agent] Add file related utils
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwwhuang committed Oct 27, 2023
1 parent 1245adc commit d345252
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,7 @@ public static ArrayList<String> getDirectoryLayers(String directory) {
public static boolean isSameDir(String fileName1, String fileName2) {
ArrayList<String> ret1 = FilePathUtil.cutDirectory(fileName1);
ArrayList<String> ret2 = FilePathUtil.cutDirectory(fileName2);
if (ret1.get(0).equals(ret2.get(0))) {
return true;
} else {
return false;
}
return ret1.get(0).equals(ret2.get(0));
}

}

0 comments on commit d345252

Please sign in to comment.