2017 © Pedro Peláez
 

library raw-file-system

RawFileSystem is a collection of utility methods that help with working with the file system.

image

rawphp/raw-file-system

RawFileSystem is a collection of utility methods that help with working with the file system.

  • Tuesday, December 16, 2014
  • by rawphp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 259 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

RawFileSystem - A Set of Methods for Working with the File System

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Package Features

  • Create, copy, move and delete files
  • Create, copy, move and delete directories

Installation

Composer

RawFileSystem is available via Composer/Packagist., (*2)

Add "rawphp/raw-file-system": "0.*@dev" to the require block in your composer.json and then run composer install., (*3)

{
        "require": {
            "rawphp/raw-file-system": "0.*@dev"
        }
}

You can also simply run the following from the command line:, (*4)

composer require rawphp/raw-file-system "0.*@dev"

Tarball

Alternatively, just copy the contents of the RawFileSystem folder into somewhere that's in your PHP include_path setting. If you don't speak git or just want a tarball, click the 'zip' button at the top of the page in GitHub., (*5)

Basic Usage

<?php

use RawPHP\RawFileSystem\FileSystem;

$fs = new FileSystem( );

$fs->createFile( '/path/to/file.txt' );
$fs->copyFile( '/path/to/source/file.txt', '/path/to/destination/file.txt' );
$fs->moveFile( '/path/to/source/file.txt', '/path/to/destination/file.txt' );
$fs->deleteFile( '/path/to/source/file.txt' );

$fs->createDirectory( '/path/to/dirname' );
$fs->copyDirectory( '/path/to/dir', '/path/to/destination' );
$fs->moveDirectory( '/path/to/dir', '/path/to/destination' );
$fs->deleteDirectory( '/path/to/dir', TRUE ); // deletes recursively if TRUE

License

This package is licensed under the MIT. Read LICENSE for information on the software availability and distribution., (*6)

Contributing

Please submit bug reports, suggestions and pull requests to the GitHub issue tracker., (*7)

Changelog

16-09-2014

  • Updated to PHP 5.3.

16-09-2014

  • Initial Code Commit

The Versions

16/12 2014

dev-master

9999999-dev http://rawphp.org

RawFileSystem is a collection of utility methods that help with working with the file system.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Tom Kaczocha

files links directories