The isSameEntry()
method of the FileSystemHandle
interface compares two handles
to see if the associated entries (either a file or directory) match.
var Boolean = FileSystemHandle1.isSameEntry(FileSystemHandle2);
Returns a Boolean
which is true
is the entries match.
No exceptions are thrown.
The following function compares a single entry with an array of entries, and returns a new array with any matching entries removed.
function removeMatches(fileEntry, entriesArr) {
let newArr = entriesArr.filter( entry => !fileEntry.isSameEntry(entry) )
return newArr;
}