Raynes / fs

File system utilities for Clojure.
453 stars 119 forks source link

When would I see include-java-7-fns? #104

Open lkrubner opened 7 years ago

lkrubner commented 7 years ago

This is basically the same as my previous question from 2015. But my question here is about include-java-7-fns.

If I have this in my project.clj:

             [me.raynes/fs "1.4.6"]

And in Emacs I go "nrepl-jack-in" and then:

(require '[me.raynes.fs :as fs])

(ns-publics 'me.raynes.fs)

I end up with:

{chdir #'me.raynes.fs/chdir

 read-sym-link #'me.raynes.fs/read-sym-link

 absolute? #'me.raynes.fs/absolute?

 find-files #'me.raynes.fs/find-files

 copy-dir #'me.raynes.fs/copy-dir

 temp-file #'me.raynes.fs/temp-file

 with-mutable-cwd #'me.raynes.fs/with-mutable-cwd

 *cwd* #'me.raynes.fs/*cwd*

 temp-name #'me.raynes.fs/temp-name

 iterate-dir #'me.raynes.fs/iterate-dir

 normalized #'me.raynes.fs/normalized

 child-of? #'me.raynes.fs/child-of?

 tmpdir #'me.raynes.fs/tmpdir

 home #'me.raynes.fs/home

 copy #'me.raynes.fs/copy

 ns-path #'me.raynes.fs/ns-path

 temp-dir #'me.raynes.fs/temp-dir

 parent #'me.raynes.fs/parent

 walk #'me.raynes.fs/walk

 mkdir #'me.raynes.fs/mkdir

 exec #'me.raynes.fs/exec

 mkdirs #'me.raynes.fs/mkdirs

 split-ext #'me.raynes.fs/split-ext

 create #'me.raynes.fs/create

 copy-dir-into #'me.raynes.fs/copy-dir-into

 name #'me.raynes.fs/name

 list-dir #'me.raynes.fs/list-dir

 file #'me.raynes.fs/file

 mod-time #'me.raynes.fs/mod-time

 delete #'me.raynes.fs/delete

 executable? #'me.raynes.fs/executable?

 chmod #'me.raynes.fs/chmod

 rename #'me.raynes.fs/rename

 with-cwd #'me.raynes.fs/with-cwd

 unix-root #'me.raynes.fs/unix-root

 find-files* #'me.raynes.fs/find-files*

 absolute #'me.raynes.fs/absolute

 size #'me.raynes.fs/size

 file? #'me.raynes.fs/file?

 link? #'me.raynes.fs/link?

 extension #'me.raynes.fs/extension

 readable? #'me.raynes.fs/readable?

 expand-home #'me.raynes.fs/expand-home

 split #'me.raynes.fs/split

 writeable? #'me.raynes.fs/writeable?

 delete-dir #'me.raynes.fs/delete-dir

 glob #'me.raynes.fs/glob

 exists? #'me.raynes.fs/exists?

 sym-link #'me.raynes.fs/sym-link

 link #'me.raynes.fs/link

 hidden? #'me.raynes.fs/hidden?

 parents #'me.raynes.fs/parents

 touch #'me.raynes.fs/touch

 path-ns #'me.raynes.fs/path-ns

 copy+ #'me.raynes.fs/copy+

 directory? #'me.raynes.fs/directory?

 base-name #'me.raynes.fs/base-name}

So there is no function called "move".

But if I look here I see a function called "move":

https://github.com/Raynes/fs/blob/3a947d4f93ada37c12ca8e2d0da3b8f8f5fb9240/src/me/raynes/fs.clj#L224

But I think "move" should appear if my Java version is 7 or more? On my Mac I have:

java -version
java version "1.8.0_25"

Ultimately, I don't need "move" since I can do "copy" and then "delete" but I'd like to understand why "move" doesn't appear for me.

I just got this error, which caused me to look into this:

java.lang.RuntimeException: No such var: fs/move
Janderio commented 4 years ago

Usually I do not revive this old postings, but: I cannot answer the when but the why.. The last release was on 16 Jun 2014 (1.4.6) the move function was commited on 28 Aug 2014. Just saying the current release lacks the move function in code as it was written later.

Raynes commited last time November 2016 to another repository, nothig since then. When him comes back a new release possible would bring this function to us.

(Yes I would like to use the move function too)

Edit: reading other issues as well you will find the reason why him stopped his great work: https://www.reddit.com/r/Clojure/comments/5gyyxw/clojure_open_source_contributor_anthony_grimes/

jiacai2050 commented 3 years ago

@Janderio So bad news.

I fork this to https://github.com/jiacai2050/fs, deploy to clojars, hopefully fix this issue.