Get file attributes function