extrapixel / gif-animation

GifAnimation is a Processing library to play and export GIF animations
GNU General Public License v3.0
171 stars 38 forks source link

Wondering #27

Closed tarbear123 closed 5 years ago

tarbear123 commented 5 years ago

what does this function do? // Enumerate and possibly display the animated GIF filenames in GIFS directory int enumerateGIFFiles(const char *directoryName, boolean displayFilenames) {

numberOfFiles = 0;

File directory = SD.open(directoryName);
if (!directory) {
    return -1;
}

File file = directory.openNextFile();
while (file) {
    if (isAnimationFile(file.name())) {
        numberOfFiles++;
        if (displayFilenames) {
            Serial.println(file.name());
        }
    }
    file.close();
    file = directory.openNextFile();
}

file.close();
directory.close();

return numberOfFiles;
extrapixel commented 5 years ago

Where does this code come from?

tarbear123 commented 5 years ago

from the FilenameFunctions.cpp

extrapixel commented 5 years ago

There is no such file in this repository.