Update #62 : refactor deprecated functions for stat and for metadata files