Giter Site home page Giter Site logo

nio.file's People

Contributors

jonathn avatar noisesmith avatar tobereplaced avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nio.file's Issues

posix-file-permissions returns java.util.Hashset

If I read posix-file-permissions correctly it returns a java.util.HashSet. This caught me by surprise when I was trying to conj another permission to it. I guess I expected a clojure set. This might be more idiomatic.

I'd rather do

(conj (nio/posix-file-permissions dir) (nio/posix-file-permission :group-write))

instead of

(doto (nio/posix-file-permissions dir) (.add (nio/posix-file-permission :group-write)))

Functionality for deleting and copying directories

I'm trying to migrate my code from me.raynes.fs away to this library. First off because it seems to be better maintained but also because it is based on modern Java APIs. The last functionality that has no equivalent in nio.file are the functions delete-dir and copy-dir. I understand that you do not want this to be a utility library. This however will foster a copy and paste culture based of your walkthrough.clj. I have already implemented a delete-dir based on your example and some inspiration from the ant delete task so that it would work for nfs mounted directories. I will have to implement a tree walker for copying.

For now, I guess, we can put this code in walkthrough.clj (expect some pull requests) but I think in the long run this should be included maybe in a separate namespace.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.