[Ohrrpgce] SVN: teeemcee/8559 Added real_isfile(), fix edgecases in isdir, fileisreadable/isfile, file
subversion at HamsterRepublic.com
subversion at HamsterRepublic.com
Sun Mar 19 19:28:11 PDT 2017
teeemcee
2017-03-19 19:28:11 -0700 (Sun, 19 Mar 2017)
702
Added real_isfile(), fix edgecases in isdir, fileisreadable/isfile, fileiswriteable, diriswriteable, makedir and safekill
real_isfile() is like isfile() but returns true for unreadable files.
Bugs included:
-fileisreadable/isfile returned true for directories on Unix!
-fileiswriteable created the file if it didn't exist, meaning that if you had
a separate ohrhelp/ dir in documents, help files would be replaced with
blank ones if you tried to edit them and cancelled
-safekill wouldn't try to delete readonly files (doesn't work on Windows anyway)
-I decided to make isdir("") return true, since pretty much all other functions
treat "" as CURDIR. Rewrote isdir() to no longer be a giant kludge
---
U wip/allmodex.bas
U wip/common.rbas
U wip/filetest.bas
U wip/os_unix.c
U wip/os_windows.bas
U wip/util.bas
U wip/util.bi
More information about the Ohrrpgce
mailing list