File operations improvements