Menu

ReadAllFilesOnSpecifiedFolder

yamamoto2002
Attachments
RAOSF102_screenshot.png (18493 bytes)

App reads all files on specified folder.

App screenshot image

Downloads

Windows 10 x86 or x64 : https://sourceforge.net/projects/playpcmwin/files/others/ReadAllFilesOnSpecifiedFolder102.zip/download

Supported platforms

Windows 10 x86 or x64

How to install and start the program

"Extract All" the downloaded zip and run ReadAllFilesOnSpecifiedFolder.exe on the subfolder.

How to uninstall

Delete the zip downloaded and extracted files to uninstall.

License

MIT License.

Source code

https://sourceforge.net/p/playpcmwin/code/HEAD/tree/PlayPcmWin/ReadAllFilesOnSpecifiedFolder/
https://sourceforge.net/p/playpcmwin/code/HEAD/tree/PlayPcmWin/WWUtil/

Frequently Asked Questions

Q. What read means.

A. App performs following read task for each files. Simply put : Read the file from beginning to end.

ReadAllFilesOnFolder.cs:105
    private string ReadOneFile(string path) {
        var buf = new byte[1024 * 1024];
        ...
        using (var br = new BinaryReader(File.Open(path, FileMode.Open, FileAccess.Read))) {
            long totalBytes = br.BaseStream.Length;
            // bufのサイズ単位で読む。
            for (long pos = 0; pos < totalBytes; pos += buf.Length) {
                int readBytes = buf.Length;
                if (totalBytes < pos + readBytes) {
                    readBytes = (int)(totalBytes - pos);
                }
                br.Read(buf, 0, readBytes);
            }
        }
        ...
    }

Changelog

Version 1.0.2
* Supports Stop (cancel) on directory traversal.

Version 1.0.1
* Fix potential deadlock.

Version 1.0.0
* Initial release.


Related

Wiki: Home
Wiki: PlayPcmWinJp