ENH: Filter out read only directory

#3366 Work in progress