sapling/eden/fs/config
Xavier Deguillard f4f159537f utils: add a platform independent FileUtils
Summary:
Up to now, Windows had to have its own version of folly::{readFile, writeFile,
writeFileAtomic} as these only operate on `char *` path, which can only
represent ascii paths on Windows. Since the Windows version is slightly
different from folly, this forced the code to either ifdef _WIN32, or use the
folly version pretending that it would be OK. The Windows version was also
behaving slightly differently from folly. For instance, where folly would
return a boolean to indicate success, on Windows we would throw an exception.

To simplify our code, add type safety and unify both, we can implement our own
wrappers on top of either folly or Windows APIs.

We still have some code that uses folly::readFile but these should only be
dealing with filedescriptors. As a following step, we may want to have our own
File class that wraps a file descriptor/HANDLE so we can completely remove all
uses of folly::readFile.

Reviewed By: wez

Differential Revision: D23037325

fbshipit-source-id: 2b9a026f3ee6220ef55097abe649b23e38d9fe91
2020-08-14 18:56:33 -07:00
..
test utils: add a platform independent FileUtils 2020-08-14 18:56:33 -07:00
CachedParsedFileMonitor.h Use getFileContent() on Windows 2020-04-24 12:46:18 -07:00
CheckoutConfig.cpp utils: add a platform independent FileUtils 2020-08-14 18:56:33 -07:00
CheckoutConfig.h remove the legacy bind mount code from CheckoutConfig 2020-01-24 18:11:36 -08:00
CMakeLists.txt config: add CachedParsedFileMonitorTest to CMake build 2020-05-07 16:38:05 -07:00
ConfigSetting.h refactor EdenConfig to use private inheritance 2019-10-11 11:01:49 -07:00
eden_config.thrift enable py3 thrift language 2020-06-10 19:29:17 -07:00
EdenConfig.cpp Migrate to field_ref Thrift API 2020-07-21 11:23:35 -07:00
EdenConfig.h win: conditionally enable negative path caching 2020-08-14 17:35:50 -07:00
FieldConverter.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
FieldConverter.h adding logging for selective paths 2020-06-23 10:02:41 -07:00
FileChangeMonitor.cpp config: restrict stat comparison on Windows 2020-05-05 18:14:55 -07:00
FileChangeMonitor.h replace some uses of memset 2020-01-31 10:50:48 -08:00
ReloadableConfig.cpp use enumValue instead of static_cast<int> 2020-04-28 18:59:34 -07:00
ReloadableConfig.h optimize and simplify ReloadableConfig 2019-10-11 10:42:36 -07:00
TomlConfig.h add helper for setting default values in toml tables 2020-02-05 11:20:26 -08:00