MCPcopy Create free account
hub / github.com/cinder/Cinder / writeFile

Function writeFile

src/cinder/DataTarget.cpp:86–94  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////// Free functions

Source from the content-addressed store, hash-verified

84/////////////////////////////////////////////////////////////////////////////
85// Free functions
86DataTargetPathRef writeFile( const fs::path &path, bool createParents )
87{
88 if( createParents ) {
89 if( ! path.parent_path().empty() )
90 fs::create_directories( path.parent_path() );
91 }
92
93 return DataTargetPath::createRef( path );
94}
95
96} // namespace cinder

Callers 9

saveImageDialogMethod · 0.85
writeObjMethod · 0.85
saveSnapshotMethod · 0.85
testObjFileWriteReadMethod · 0.85
mouseDownMethod · 0.85
writeImageFunction · 0.85
writeStringFunction · 0.85
writeMethod · 0.85
createMethod · 0.85

Calls 3

create_directoriesFunction · 0.85
parent_pathMethod · 0.80
emptyMethod · 0.45

Tested by 3

saveSnapshotMethod · 0.68
testObjFileWriteReadMethod · 0.68
mouseDownMethod · 0.68