Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

ofToDataPath format on Windows, double slash

$
0
0

great thanks. the best way to handle paths to avoid this problems is to use std::filesystem::path which when compared doens't do a strict string comparison and will work for / or \ or double // or even comparing absolute and relative paths if they exist. you just need to wrap the string for the path like:

std::filesystem::path("some/path") == std::filesystem::path("some//path")

which should return true


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>