Skip to content

ofFile api inconsistencies #4931

@danomatika

Description

@danomatika

Noticed a few things when documenting ofFileUtils.h:

ofFile(path, mode, binary) constructor opens w/ default binary=true while:

  • ofFile::open() opens w/ binary=false
  • ofFile::changeMode() uses binary=false
  • ofDirectory::getFile() uses binary=false

ofFile::create(), how to set path before creating? Both the constructor and open() set the path but also try opening the file...

ofFile::setReadOnly() & ofDirectory::setReadOnly() should be setReadable() to match setWriteable(). I feel this naming also conflicts with the ReadOnly access mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions