sapling/eden/fs/inodes/win/DirList.cpp
Puneet Kaushik b2cb66890b Add readdir to Eden Windows
Summary: This diff implements DirList for Windows and use it for readdir implemetation. On Windows readdir will return all the entries in one single call.

Reviewed By: simpkins

Differential Revision: D20480871

fbshipit-source-id: 15abb337c55c5016debeb0680a1a3a7063b341c3
2020-04-23 12:41:47 -07:00

22 lines
461 B
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#include "DirList.h"
#include "eden/fs/fuse/InodeNumber.h"
using folly::StringPiece;
namespace facebook {
namespace eden {
void DirList::add(StringPiece name, uint64_t inode, dtype_t type) {
list_.emplace_back(name, inode, type);
}
} // namespace eden
} // namespace facebook