Giter VIP home page Giter VIP logo

file_store's People

Contributors

halostatue avatar kianmeng avatar rzane avatar warmwaffles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

file_store's Issues

Interest in a `list_files` or `list_objects` function?

This wouldn’t be that hard to add, but there are two problems that I see:

  1. The maximum number of items returned from an S3 list_objects query is 1,000 items, requiring pagination to return all items. This would potentially result in some differences in the way that the different adapters work (the Disk adapter would not have that limitation) unless some sort of pagination mechanism was always assumed. The ideal here would be to make things work like FileStore.Stat.

  2. The S3 list_objects query acts more like find x -type f than ls, in that “subdirectories” are returned as part of the search because the key space in S3 is flat, and the prefix is literally that: a prefix (but the / still acts a little special).

I’d be happy to contribute this.

New release?

We finally got around to upgrading and there were a number of incompatibilities (the new Prefix middleware instead of prefix:, etc.).

It’s all good, but the current released version 0.2.2 only supports middleware for FileStore.Config versions where the configuration is specified in config.exs, but master appears to do the right thing (reading either init or config as appropriate). We use module-level configuration, not config.exs configuration.

A new release would alleviate this.

Set version in committed `mix.exs`

The current application version is set as @version "0.0.0" in mix.exs. Ideally, this should be set to the current (or next) version in the source branch so that a dependency can be specified as:

{:file_store, "~> 0.2", github: "rzane/file_store", branch: "master"}

As it is, we cannot specify the version as anything other than >= 0.0.0 if using a git branch.

Implement logging

It'd be really helpful to see logs like:

[info] Uploaded file to key: 0fq3fadnywlvibplwoi2hg31lq57
[info] Download file from key: 0fq3fadnywlvibplwoi2hg31lq57
[info] Deleted file from key: 0fq3fadnywlvibplwoi2hg31lq57
[error] Failed to delete file from key: 0fq3fadnywlvibplwoi2hg31lq57

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.