SpaceBeeGaming Posted November 23, 2018 Posted November 23, 2018 How can I get the number of files in a directory? Quote
0 SpaceBeeGaming Posted November 28, 2018 Author Posted November 28, 2018 Never mind I ended up doing things differently. Quote
0 Elektron72 Posted November 23, 2018 Posted November 23, 2018 You could use filesystem.list(), use the iterator to loop over every file and sub-directory, and add to a counter if filesystem.isDirectory() returns false. Quote
0 SpaceBeeGaming Posted November 23, 2018 Author Posted November 23, 2018 The thing is that the directory has only files and no directories. The files contain binary data (sha256 hashes), so how would I actually iterate through them for comparing with a fresh value. Quote
How can I get the number of files in a directory?