specialize folder and file func