klausler / fortran-wringer-tests

A collection of non-portable Fortran usage, standard-conformant or otherwise
40 stars 2 forks source link

inquire() directory test #1

Closed marshallward closed 1 year ago

marshallward commented 1 year ago

This patch inclues a test to report the existence of a directory.

inquire(file="foo", exist=is_file)

I suppose there is some ambiguity in the standard as to whether a directory is a file.

This is not a standalone test, since a method to create the directory foo is not provided. AFAIK, there is no simple platform-independent way to do this. But a POSIX wrapper to mk/rmdir or a system() call could be included.

marshallward commented 1 year ago

Thanks for the comments, I've made the changes and removed references to foo in the commit log.

marshallward commented 1 year ago

(Also fixed a typo in the commit log)

marshallward commented 1 year ago

Looks like there's no interest in this.

Anyway, thanks for the repo, lots of good use cases here.

klausler commented 1 year ago

The PR was approved back in August; why not merge it?

marshallward commented 1 year ago

Did not realize I had access to your repo...

klausler commented 1 year ago

Did not realize I had access to your repo...

You should be able to hit a green "Merge pull request" button in the web GUI; if it is not present, or doesn't work, please just let me know.

marshallward commented 1 year ago

Yep, no button.