Calling getAttributes() does not require the folder to be open.