I would like to check whether an existing file is in a specific directory or a subdirectory of that.
I have two File objects.
File dir; File file; <
If you plan to works with file and filenames heavly check apache fileutils and filenameutils libraries. Are full of useful (and portale if portability is mamdatory) functions