2017 © Pedro Peláez
 

library file-system-functions

A collection of file system related functions.

image

herrera-io/file-system-functions

A collection of file system related functions.

  • Friday, November 8, 2013
  • by kherge
  • Repository
  • 0 Watchers
  • 1 Stars
  • 859 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

FS Functions

Build Status, (*1)

I am deprecating this in favor of phine/lib-path., (*2)

A collection of file system related functions., (*3)

Summary

The library contains a collection of simple file system related functions:, (*4)

  • canonical_path() - Returns the canonical file path.
  • is_absolute_path() - Check for an absolute path.
  • is_hidden_path() - Checks for a hidden path.

Installation

Add it to your list of Composer dependencies:, (*5)

$ composer require herrera-io/file-system-functions=1.*

Usage

<?php

var_export(canonical_path('../../myDir')); // /var/lib/myDir
var_export(canonical_path('../../myDir')); // C:\\Projects\\myDir

var_export(is_absolute_path('../')); // false
var_export(is_absolute_path('C:\\Test\\Path')); // true

var_export(is_hidden_path('/path/to/.hidden')); // true
var_export(is_hidden_path('C:\\Path\\To\\Hidden.txt')); // true

The Versions

08/11 2013

dev-master

9999999-dev http://code.herrera.io/php-fs-functions

A collection of file system related functions.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

file functions

20/07 2013

2.0.0

2.0.0.0 http://code.herrera.io/php-fs-functions

A collection of file system related functions.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

file functions

20/01 2013

1.0.0

1.0.0.0 https://code.herrera.io/php-fs-functions

A collection of file system related functions.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

file functions