//////////////////////////////////////////////////////////////////////// Free functions
| 84 | ///////////////////////////////////////////////////////////////////////////// |
| 85 | // Free functions |
| 86 | DataTargetPathRef 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 |