PHP Classes
elePHPant
Icontem

Find Large Files: I need to find large files on a server

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All requests RSS feed  >  Find Large Files  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Find Large Files

Edit

Picture of Gerry Danen by Gerry Danen - 4 months ago (2015-10-07)

I need to find large files on a server

This request is clear and relevant.
This request is not clear or is not relevant.

+4

Is there a class that will traverse an entire server and list all files over a certain (5MB, for example) size?

Ask clarification

3 Recommendations

PHP Filesystem Helper Library: Manipulate and search files and directories

This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Joshua McKenzie by Joshua McKenzie package author package author Reputation 65 - 2 months ago (2015-12-07) Comment

To give another variety, PHP5 Iterators, Regex supported, Composer ready To find files above a certain size, when looping the search results, simply use the $file->getSize() method provided with the DirectoryIterator class.


PHP SPL File Find: SPL iterator to find files with different criteria

This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Ravi Kumar by Ravi Kumar package author package author Reputation 90 - 3 months ago (2015-10-18) Comment

The in() method lists all the files in a given directory, and returns an array of the names. You can filter out which files you want with a size() method. see example

$find = new Find; Filter files by size $files = $find->size('>50m')->in( $path );


File Display: Displays listings of files and directories

This recommendation solves the problem.
This recommendation does not solve the problem.

+5

Picture of Dave Smith by Dave Smith Reputation 5955 - 4 months ago (2015-10-09) Comment

Looks like this one will do it with a little modification. It currently has a method that filters out any file that is not an image which can be changed and it does list file size which should be able to be used as the filter instead.

  • 1 Comment
  • 1. Picture of Gerry Danen by Gerry Danen - 4 months ago (2015-10-09) Reply

    Thanks, Dave. I believe that will indeed do the trick.


Recommend package
: 
: