Skip to content

isDirectory() is not compatible with z/OS #71

@laijonathan

Description

@laijonathan
    isDirectory() {
      return (this.mode & 61440) === 16384;
    }

On z/OS the isDirectory() function always returns false.
The inode masks S_IFMT and S_IFDIR (61440 and 16384) do not seem to be compatible since S_IFMT on z/OS is defined as 0xFF000000

External source: https://www.nntp.perl.org/group/perl.mvs/2014/11/msg1875.html

A potential fix I have tested is to use the constants from the fs module instead of a hardcoded value. eg: fsNode.constants.S_IFMT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions