Skip to content

Add Exists function to pathx module #6

@piraz

Description

@piraz

Implement the Exists function in the pathx module to provide a reliable way to check if a given path (file or directory) exists. This should serve as a convenience utility for path presence checks, simplifying file and directory verification.

Acceptance criteria:

  • The function signature must be: Exists(path string) bool
  • The function returns true if the specified path (file or directory) exists, false otherwise
  • Include English GoDoc comments
  • Add unit tests for the Exists function in the pathx package
  • Code must follow project standards for ioook and Firenado

Example usage:

if pathx.Exists("/etc/passwd") {
    // do something
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions