mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
b2cb66890b
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
22 lines
461 B
C++
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
|