MCPcopy Create free account
hub / github.com/audacity/audacity / FilePart

Method FilePart

libraries/lib-network-manager/MultipartData.cpp:104–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102{
103public:
104 explicit FilePart(const wxFileName& fileName)
105 : mFileName(fileName)
106 {
107 if (!fileName.FileExists())
108 {
109 throw SimpleMessageBoxException(ExceptionType::BadUserAction,
110 XO("Failed to open the file for upload: %s")
111 .Format(fileName.GetFullPath()));
112 }
113
114 if (!mFile.Open(fileName.GetFullPath()))
115 {
116 throw SimpleMessageBoxException(
117 ExceptionType::BadUserAction,
118 XO("Failed to open the file for upload: %s")
119 .Format(fileName.GetFullPath()));
120 }
121 }
122
123 int64_t GetSize() const override
124 {

Callers

nothing calls this directly

Calls 2

OpenMethod · 0.45

Tested by

no test coverage detected