Coder Social home page Coder Social logo

Posix stat metadata about f.el HOT 5 CLOSED

priyadarshan avatar priyadarshan commented on August 15, 2024
Posix stat metadata

from f.el.

Comments (5)

rejeep avatar rejeep commented on August 15, 2024

Give it a shot, perhaps possible using https://github.com/rejeep/f.el/blob/master/f.el#L386?

from f.el.

priyadarshan avatar priyadarshan commented on August 15, 2024

Nice, why did I not think of that! Elisp has extended attributes introspection too (https://www.gnu.org/software/emacs/manual/html_node/elisp/Extended-Attributes.html). Thank you. I shall give it a try.

from f.el.

priyadarshan avatar priyadarshan commented on August 15, 2024

Thank you for the pointer, it works as intended.

It would still be quite nice to be able to access such information through f.el API, i.e. perhaps by adding some syntactic sugar to allow easier extraction of the Posix metadata.

Right now one needs to do a bit of cavorting in order to do that.

from f.el.

rejeep avatar rejeep commented on August 15, 2024

Why don't you use the raw functions for a while and get back if you figure out an API that make sense. Otherwise I think it will be hard to come up with a good API.

from f.el.

priyadarshan avatar priyadarshan commented on August 15, 2024

Almost exactly a year later, just a quick addition, for future reference: Emacs 26.0.50 is offering more file details. From NEWS file:

+++
** Several accessors for the value returned by 'file-attributes'
have been added.  They are: 'file-attribute-type',
'file-attribute-link-number', 'file-attribute-user-id',
'file-attribute-group-id', 'file-attribute-access-time',
'file-attribute-modification-time',
'file-attribute-status-change-time', 'file-attribute-size',
'file-attribute-modes', 'file-attribute-inode-number',
'file-attribute-device-number' and 'file-attribute-collect'.

from f.el.

Related Issues (20)

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.