SpaceBeeGaming 3 Posted November 23, 2018 Share Posted November 23, 2018 How can I get the number of files in a directory? Quote Link to post Share on other sites
0 Solution SpaceBeeGaming 3 Posted November 28, 2018 Author Solution Share Posted November 28, 2018 Never mind I ended up doing things differently. Quote Link to post Share on other sites
0 Elektron72 2 Posted November 23, 2018 Share 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 Link to post Share on other sites
0 SpaceBeeGaming 3 Posted November 23, 2018 Author Share 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 Link to post Share on other sites
How can I get the number of files in a directory?
Link to post
Share on other sites