2017 © Pedro Peláez
 

library file-system-manager

A collection of file and directory management functions.

image

heartsentwined/file-system-manager

A collection of file and directory management functions.

  • Wednesday, July 6, 2016
  • by heartsentwined
  • Repository
  • 1 Watchers
  • 3 Stars
  • 10,775 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 13 Versions
  • 4 % Grown

The README.md

Yalesov\FileSystemManager

Build Status, (*1)

A collection of often-used file and directory management functions not present in PHP core., (*2)

Installation

Composer:, (*3)

{
  "require": {
    "yalesov/file-system-manager": "2.*"
  }
}

Usage

Recursively iterate the directory foo, listing all files (child-last):, (*4)

use \Yalesov\FileSystemManager\FileSystemManager;
foreach (FileSystemManager::fileIterator('foo') as $file) {
  echo $file; // /path/to/file
}

Recursively iterate the directory foo, listing all directories (child-first):, (*5)

use \Yalesov\FileSystemManager\FileSystemManager;
foreach (FileSystemManager::dirIterator('foo') as $dir) {
  echo $dir; // /path/to/child/dir
}

Recursive rmdir: remove the directory foo along with all child directories and files, (*6)

use \Yalesov\FileSystemManager\FileSystemManager;
FileSystemManager::rrmdir('foo');

Recursive copy: copy the directory foo to bar along with all child directories and files, (*7)

Warning: this function overwrites existing files, (*8)

use \Yalesov\FileSystemManager\FileSystemManager;
FileSystemManager::rcopy('foo', 'bar');

rcopy will copy into existing directories if they already exist. By default, it will create non-existent directories with permission 0755. You can change this by specifying the third parameter:, (*9)

FileSystemManager::rcopy('foo', 'bar', 0777);

Recursive chmod: chmod the directory foo to 0755, along with all child directories and files, (*10)

use \Yalesov\FileSystemManager\FileSystemManager;
FileSystemManager::rchmod('foo', 0755);

Recursive chown: chown the directory foo to www-data, along with all child directories and files, (*11)

use \Yalesov\FileSystemManager\FileSystemManager;
FileSystemManager::rchown('foo', 'www-data');

Recursive chgrp: chgrp the directory foo to www-data, along with all child directories and files, (*12)

use \Yalesov\FileSystemManager\FileSystemManager;
FileSystemManager::rchown('foo', 'www-data');

The Versions

06/07 2016

dev-master

9999999-dev https://github.com/yalesov/php-file-system-manager

A collection of file and directory management functions.

  Sources   Download

ISC

The Requires

 

The Development Requires

by Yulij Andreevich Lesov

file manager system directory dir

06/07 2016

v2.0.6

2.0.6.0 https://github.com/yalesov/php-file-system-manager

A collection of file and directory management functions.

  Sources   Download

ISC

The Requires

 

The Development Requires

by Yulij Andreevich Lesov

file manager system directory dir

05/07 2016

v2.0.5

2.0.5.0 https://github.com/yalesov/php-file-system-manager

A collection of file and directory management functions.

  Sources   Download

ISC

The Requires

 

The Development Requires

by Yulij Andreevich Lesov

file manager system directory dir

05/07 2016

v2.0.4

2.0.4.0 https://github.com/yalesov/php-file-system-manager

A collection of file and directory management functions.

  Sources   Download

ISC

The Requires

 

The Development Requires

by Yulij Andreevich Lesov

file manager system directory dir

05/07 2016

v2.0.3

2.0.3.0 https://github.com/yalesov/php-file-system-manager

A collection of file and directory management functions.

  Sources   Download

ISC

The Requires

 

The Development Requires

by Yulij Andreevich Lesov

file manager system directory dir

05/07 2016

v2.0.2

2.0.2.0 https://github.com/yalesov/php-file-system-manager

A collection of file and directory management functions.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

file manager system directory dir

05/07 2016

v2.0.1

2.0.1.0 https://github.com/yalesov/php-file-system-manager

A collection of file and directory management functions.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

file manager system directory dir

05/07 2016

v2.0.0

2.0.0.0 https://github.com/yalesov/php-file-system-manager

A collection of file and directory management functions.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

file manager system directory dir

03/10 2012

1.1.3

1.1.3.0 https://github.com/heartsentwined/file-system-manager

A collection of file and directory management functions.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar heartsentwined

file manager system directory dir

28/09 2012

1.1.2

1.1.2.0 https://github.com/heartsentwined/file-system-manager

A collection of file and directory management functions.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar heartsentwined

file manager system directory dir

13/09 2012

1.1.1

1.1.1.0 https://github.com/heartsentwined/file-system-manager

A collection of file and directory management functions.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar heartsentwined

file manager system directory dir

10/09 2012

1.1.0

1.1.0.0 https://github.com/heartsentwined/file-system-manager

A collection of file and directory management functions.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar heartsentwined

file manager system directory dir

07/09 2012

1.0.0

1.0.0.0 https://github.com/heartsentwined/file-system-manager

A collection of often-used file and directory management functions not present in PHP core.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar heartsentwined

file manager system directory dir