Update the emptyDir method