MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / isFile

Function isFile

Libraries/Http/HttpMultipartParser.h:48–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 [[nodiscard]] bool hasFileName() const { return disposition.hasFileName; }
47 [[nodiscard]] bool isField() const { return isFormData() and hasFieldName() and not hasFileName(); }
48 [[nodiscard]] bool isFile() const { return isFormData() and hasFieldName() and hasFileName(); }
49 [[nodiscard]] bool hasSafeFileName() const;
50 [[nodiscard]] bool isSafeFile() const { return isFile() and hasSafeFileName(); }
51};

Callers 1

isSafeFileFunction · 0.85

Calls 3

isFormDataFunction · 0.85
hasFieldNameFunction · 0.85
hasFileNameFunction · 0.85

Tested by

no test coverage detected