The equality method.
This checks if the directory field is the same.
Parameters: obj - the object to compare to true if this object has an equal directory field as the other object
Convert a file path to an array of path components.
This uses File.sepatator to split the file path string.
Parameters: thePath - the file path string to convert an array of path components