https://github.com/catseye/realpath
MIRROR of https://codeberg.org/catseye/realpath : Resolve relative file path to absolute filepath
https://github.com/catseye/realpath
filesystem-utils miscellaneous-utilities realpath
Last synced: 15 days ago
JSON representation
MIRROR of https://codeberg.org/catseye/realpath : Resolve relative file path to absolute filepath
- Host: GitHub
- URL: https://github.com/catseye/realpath
- Owner: catseye
- License: unlicense
- Created: 2014-04-27T13:08:21.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-10-27T19:50:23.000Z (over 2 years ago)
- Last Synced: 2025-03-05T04:45:01.469Z (over 1 year ago)
- Topics: filesystem-utils, miscellaneous-utilities, realpath
- Language: Python
- Homepage: https://catseye.tc/node/realpath
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`realpath`
==========
_Version 1.0-2022.0908_
| _Entry_ [@ catseye.tc](https://catseye.tc/node/realpath)
| _See also:_ [ellsync](https://codeberg.org/catseye/ellsync#ellsync)
∘ [tagfarm](https://codeberg.org/catseye/tagfarm#tagfarm)
∘ [shelf](https://codeberg.org/catseye/shelf#shelf)
- - - -
This is Cat's Eye Technologies' `realpath`, a simple command-line tool that
resolves relative file paths to absolute ones. It:
* is written in Python 3 (tested with 3.8.10)
* is small and has no dependencies besides Python
* is in the public domain (see `UNLICENSE`)
* is trivial
* is not feature-compatible with GNU realpath
* has no build/install system; either copy it to somewhere on your
search path, or alter your search path to include the `script` directory
in this repo, or use some system that solves this problem, like
[shelf](http://catseye.tc/node/shelf).
Usage
-----
realpath PATH
Related work
------------
* [realpath_1](http://leapfrog.freeshell.org/Projects/real_path.shtml) —
GPL'ed, and contains an unbuildable C version (nested comments) and an
incompatible Perl version of realpath.
* [dtjm/realpath](https://github.com/dtjm/realpath) — claims to be
"public domain" but is restricted to "non-profit use", which in my
IANAL opinion is a contradiction in terms.