MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / sLoadPath

Function sLoadPath

source/MRMesh/MRSceneLoad.cpp:195–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193};
194
195Expected<LoadedObjects> sLoadPath( const std::filesystem::path& path, const Settings::OpenFolder& openFolder, const ProgressCallback& callback )
196{
197 std::error_code ec;
198 if ( is_directory( path, ec ) )
199 {
200 if ( !openFolder )
201 {
202 spdlog::info( "Skipping directory {}", utf8string( path ) );
203 return {};
204 }
205
206 spdlog::info( "Loading directory {}", utf8string( path ) );
207 return openFolder( path, callback );
208 }
209
210 spdlog::info( "Loading file {}", utf8string( path ) );
211 return loadObjectFromFile( path, callback );
212}
213
214} // anonymous namespace
215

Callers 2

fromAnySupportedFormatFunction · 0.85

Calls 2

utf8stringFunction · 0.85
loadObjectFromFileFunction · 0.85

Tested by

no test coverage detected