Skip to content

Instantly share code, notes, and snippets.

@patriciogonzalezvivo
Last active July 14, 2018 06:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patriciogonzalezvivo/836e6ee71113cebacafa to your computer and use it in GitHub Desktop.
Save patriciogonzalezvivo/836e6ee71113cebacafa to your computer and use it in GitHub Desktop.
Load all files on a folder with OF
ofDirectory dir(_path);
if(dir.exists()){
	dir.listDir();
    int total = dir.getFiles().size();
    for (int i = 0; i < total; i++) {
        cout << "Loading " << dir.getName(i) << endl;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment