Results 1 to 9 of 9

Thread: How to check number of files in a folder

  1. #1
    Join Date
    Jul 2009
    Posts
    13

    Default How to check number of files in a folder

    Hi buddies,

    I'm trying to cut down the file number of my account to comply with the 50K limit. I want to know the number of files in some folders. How can I do this? thank you?

  2. #2
    Join Date
    Feb 2006
    Location
    North of Boston, MA
    Posts
    1,658

    Default

    Go to your account cPanel, find the Files window, click on File Count.
    redsox9 - Go Red Sox!!! 2004 and 2007 World Series Champions!
    Visit FenwayFanatics.com, home to Boston Red Sox baseball fans everywhere... now on Facebook and Twitter!

  3. #3
    Join Date
    Jul 2009
    Posts
    13

    Default

    Thank you! But File count only count the total number of files in my account. I want to know the file number of a specific folder in order to decide which one takes the big count. How can I do this?
    Last edited by tesolnet; 08-12-2009 at 09:01 AM.

  4. #4
    Join Date
    Jun 2009
    Location
    in your computer, messin with your stuff.
    Posts
    253

    Default

    if you have shell access do this:

    Code:
    cd ~/whatever/folder/you/want
    find . |wc -l
    So if i wanted to count the files in an addon domain's directory, you would do this:
    Code:
    cd ~/public_html/addondomain
    find . |wc -l

  5. #5
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    Quote Originally Posted by tesolnet View Post
    Thank you! But File count only count the total number of files in my account. I want to know the file number of a specific folder in order to decide which one takes the big count. How can I do this?
    Um, that File Count option on the Control Panel shows you the total number of files, then shows you the count of files in each folder, starting with the largest.

  6. #6
    Join Date
    Jul 2009
    Posts
    13

    Default

    I don't have shell access. Is there any other ways?

    I have so many sub directories that the list comes to thousands of rows. So the count file doesn't help much.

    My temporary solution is to convert the log file to and Excel file and use count function for the strings (folder paths). Any better solutions?

  7. #7
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    What's wrong with the File Count on the Control Panel? It shows you how many files you have in each subdirectory, starting with the largest. What else are you looking for?!

  8. #8
    Join Date
    Jul 2009
    Posts
    13

    Default

    This is it:

    I have about ten root folders in my account. I think I may have to delete some of these root folders and I want to know which ones take the most count.

    I have a folder called html. There are thousands of files and subfolders within this folder.

    If I use the count tool of BH, I just get an endless list of /htm/.. without any hints about the total number of files in the html folder.

    Also my account has crossed the 50K limit. It has +120.000 files now. I wonder why I haven't got any warning emails from BH yet? Is this because my server is still OK or because my files are merely html files?

  9. #9
    Join Date
    Apr 2008
    Location
    Chasing the Holy Grail - Pacific Northwest
    Posts
    1,312

    Default

    Suggestion: Make a full backup of your site. Download that backup to your local computer. Expand it, and use your favorite tools to determine what you actually have and what you can remove. Also, that way, if you remove it and need it back later, you have a backup.
    In the Hyperion universe, a farcaster is an instantaneous transportation device.
    Experience: The thing you get just after you need it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •