for external storages we never reach the path 'files', instead we need to leave the loop if no further parent exists