resource.isFile check will be removed once status for folders is implemented.