isSubDir

public final static Boolean isSubDir(String path1, String path2)

Tests if the path1 is a valid a subdirectory of path2, that is on any level below path2.

Return

true if path1 is a valid a subdirectory of path2, false otherwise

Parameters

path1

path of the subdirectory (to be tested)

path2

path of the parent directory (to be tested)