dirsize.c: read-only directory on non-hpfs drive causes error condition
On a FAT drive, when I use "sizes" on a directory containing a read-only directory I get an FM/2 message box:
OS/2 can't find directory "c:\utils\ati100\atiplay"
Module: dirsize.c
line number: 158
OS/2 error: 3
Class: Item not located
Action: Bad user input - get new values
Location: Random access device such as a disk
"SYS0003: The system cannot find the path specified."
Gregg's comment:
This doesn't happen on JFS but a much more involved version occurs on a readonly NTFS drive. The error occurs for every directory and is error 18(ERROR_NO_MORE_FILES) the dialog is populated with directory names but no size information. The error is from a DosFindFirst call. Is it redundant to include FILE_NORMAL and FILE_READONLY etc in this call since FILE_NORMAL means include them all?
Change History
(4)
Owner: |
StevenHL removed
|
Version: |
3.05
|
Milestone: |
→ Release_3.10
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Appears to that the FAT IFS handles R/O directories differently than any other known IFS. Oh well, changeset #924 avoids the spurious messages.