eden/fs/config/FieldConverter.cpp
/**
 * Check if string represents a well-formed file path.
 */
Check if string represents a well-formed file path.
Check if string represents a well - formed file path .
bool isValidAbsolutePath(folly::StringPiece path) {
   Alternatively, all we really care about here is making sure that
   normalizeBestEffort() isn't going to treat the path as relatively.  We
   probably should just add an option to normalizeBestEffort() to make it
   reject relative paths.
  return path.startsWith(facebook::eden::kDirSeparator);
}
bool isValidAbsolutePath ( folly :: StringPiece path ) { return path . startsWith ( facebook :: eden :: kDirSeparator ) ; }
Check if string represents a well-formed file path.
Check if string represents a well - formed file path .
// TODO: we should probably move this into PathFuncs.cpp and consolidate it // with some of the logic in AbsolutePathSanityCheck. // // Alternatively, all we really care about here is making sure that // normalizeBestEffort() isn't going to treat the path as relatively.  We // probably should just add an option to normalizeBestEffort() to make it // reject relative paths.