Implement the method areSibling that checks if the files have the same parent.
It should take two files and return true if the files have the same parent and false otherwise.
Implement the method areSibling that checks if the files have the same parent.
It should take two files and return true if the files have the same parent and false otherwise.
Sample Input 1:
dir/file1.txt
dir/file2.txtSample Output 1:
trueCreate a free account to access the full topic