Skip to content

File access from Clojure #301

Open
Open
@practicalli-johnny

Description

@practicalli-johnny

How to access files from Clojure

  • where is the path, is it relative or absolute
  • does access work when code is packaged in jar files

slurp

clojure.java.io/resource

  • project/resources is the base path, so file and directory locations are relative to that (confirm this is correct, why does ring use project/resources/public

clojure.java.io/file - avoid using file as this will not find the files when packaged in a Jar file, use resource instead

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions