File resource management