Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2002
    Location
    New York
    Posts
    791

    having more then 2000 files in a folder ??

    I now this will sound strange but I have a need to have over 2000 images within a folder and when I upload (via ftp) the files on a LAMP CentOS, Cpanel server all that shows is 1998 files

    the ftp status I see is
    Response: 150 Accepted data connection
    Response: 226-Options: -a -l
    Response: 226 Output truncated to 2000 matches
    Status: Directory listing successful


    So does that mean the files are their and if so how could I view them?
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    just a programmer

  2. #2
    I believe FTP is limited to a certain amount of files to protect against malicious attacks, I think the files are there but you simply can't view them via FTP. To test, you could upload a PHP script that counts the number of files in a folder.

    If you're on a dedicated setup I think you can edit the limit in /etc/pure-ftpd.conf (assuming that's the FTP you're using).

  3. #3
    Join Date
    Feb 2002
    Location
    New York
    Posts
    791
    thank you I am going to upload a php script to count the number of files to see how many it says is in the folder
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    just a programmer

  4. #4
    Join Date
    Feb 2003
    Location
    AR
    Posts
    2,381
    Your files are there, but as stated above, you are limited to viewing 2000 (1998 real files, ., and ..)

    I believe this setting is editable via your FTP server's configuration file.

  5. #5
    Join Date
    May 2009
    Location
    Tennessee
    Posts
    303
    Since you're using cPanel, you can see all the files using the built-in file manager. There's also the alternative of connecting through SFTP since it doesn't have this limitation. As others have suggested, you can adjust the file truncation setting so your FTP server will display more files.
    AudioProbe.net - Playing the best music from the 70s, 80s, 90s, 00s, and more...
    Commercial free, high quality 192kb/s, and firewall friendly port 80!
    Look for us in the iTunes Radio directory under Adult Contemporary

  6. #6
    Join Date
    Feb 2002
    Location
    New York
    Posts
    791

    ...

    Thanks for the information Any online manuals that outline how to change the servers ftp settings on a LAMP CentOS server with Cpanel installed once I ssh into the machine

    thanks :-)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    just a programmer

  7. #7
    Join Date
    May 2009
    Location
    Tennessee
    Posts
    303
    Open /etc/pure-ftpd.conf

    Find
    Code:
    LimitRecursion 2000 8
    If that line is not there, add it. Change 2000 to the desired number of files you wish to display. Leave the 8 alone unless you need to traverse to a deeper directory depth.

    So if you wanted to display 5000 files, it would change to this:
    Code:
    LimitRecursion 5000 8
    Save the file and restart the FTP server.
    AudioProbe.net - Playing the best music from the 70s, 80s, 90s, 00s, and more...
    Commercial free, high quality 192kb/s, and firewall friendly port 80!
    Look for us in the iTunes Radio directory under Adult Contemporary

  8. #8
    Join Date
    Feb 2002
    Location
    New York
    Posts
    791

    ..

    Thank you Hostify Networks I appriciate your help
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    just a programmer

  9. #9
    Join Date
    Apr 2008
    Location
    United States, MI
    Posts
    766
    With 2000 files you're making the inode for the containing folder pretty large.

    You should start organizing your folders in my opinion.

    IE:
    images/
    - a/
    -- abc.jpg
    - b/
    -- baseball.bmp
    - c/
    -- cat.gif
    -- cheezeburgercats.jpg
    - d/
    -- dogs.jpg

    ect ect


    You'll get around other common annoyances as well, and it makes backups allot easier ect.
    Steven Crothers
    No BS cloud engineer and Red Hat architect.

  10. #10
    just to inform you to mush files in a single folder will slow down your server

Similar Threads

  1. files stored in same folder
    By MichaelJS in forum Web Hosting
    Replies: 9
    Last Post: 01-25-2009, 01:07 PM
  2. Which Files And Folder Using 34 gb
    By nabeelamjad in forum Hosting Security and Technology
    Replies: 5
    Last Post: 12-08-2007, 10:51 AM
  3. Maximam Files in one Folder?
    By AskAR in forum Hosting Security and Technology
    Replies: 1
    Last Post: 05-03-2005, 03:47 PM
  4. Rename files in folder
    By us0r in forum Hosting Security and Technology
    Replies: 4
    Last Post: 08-10-2004, 03:50 PM
  5. how to remove files/folder from temp folder?
    By iNCLiP in forum Hosting Software and Control Panels
    Replies: 4
    Last Post: 02-20-2003, 03:26 AM

Posting Permissions

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