Code Monkey home page Code Monkey logo

raku-file-homedir's Introduction

File::HomeDir

Actions Status

This is a Raku port of File::HomeDir. File::HomeDir is a module for locating the directories that are "owned" by a user (typically your user) and to solve the various issues that arise trying to find them consistently across a wide variety of platforms.

The end result is a single API that can find your resources on any platform, making it relatively trivial to create Perl software that works elegantly and correctly no matter where you run it.

Example

use v6;

use File::HomeDir;

say File::HomeDir.my-home;
say File::HomeDir.my-desktop;
say File::HomeDir.my-documents;
say File::HomeDir.my-pictures;
say File::HomeDir.my-videos;

Installation

To install it using zef (a module management tool bundled with Rakudo Star):

zef install File::HomeDir

Testing

  • To run tests:
$ prove --ext .rakutest -ve "raku -I."
  • To run all tests including author tests (Please make sure Test::Meta is installed):
$ zef install Test::META
$ TEST_AUTHOR=1 prove --ext .rakutest -ve "raku -I."

Author

Raku version:

Perl 5 version:

  • Adam Kennedy (2005 - 2012)
  • Chris Nandor (2006)
  • Stephen Steneker (2006)
  • Jérôme Quelin (2009-2011)
  • Sean M. Burke (2000)

License

MIT License

raku-file-homedir's People

Contributors

azawawi avatar samcv avatar sdondley avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

samcv sdondley

raku-file-homedir's Issues

Add FreeDesktop support

NAME
       xdg-user-dir - Find an XDG user dir

SYNOPSIS
       xdg-user-dir [NAME]

DESCRIPTION
       xdg-user-dir looks up the current path for one of the special XDG user
       dirs.

       This command expects the name of an XDG user dir as argument. The
       possible names are:
           DESKTOP
           DOWNLOAD
           TEMPLATES
           PUBLICSHARE
           DOCUMENTS
           MUSIC
           PICTURES
           VIDEOS

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.