get file stat without os.Open