@a14n, is this instanceof check going to work? I'm trying to determine if the given proxy object is a FileEntry or a DirectoryEntry.