Patch open directory