some file funcs

add file manage functions