Jump to content

How many file in a directory


dreamwest

Recommended Posts

I have over 30,000 videos in one directory. I certainly cant use an ftp client to open the directory, so i cant tell if there are any hacker files in there.

 

What is the safe amount of file to load into one directory?

 

Does it slow down the server if it has to scan the entire directory to find the one file?

Link to comment
Share on other sites

Depends on file system used. For example FAT16 had a limit on 1024 files/subdirectories IIRC. Most modern file systems do not have any limits on that as far as I know, but as you have noticed by yourself, having very large amount of files in one directory can become unwieldy.

 

Link to comment
Share on other sites

Does it slow down the server if it has to scan the entire directory to find the one file?

 

Well, yeah, if you're doing a linear search then it will obviously potentially take longer time finding what you're looking for with a larger problem size.

 

How are you doing the search?

Link to comment
Share on other sites

I'm curious how you would eyeball whether the files are "hacker" files or not... plan on just looking at the filenames and seeing if there are files in there that don't match a specific naming convention? Would be way faster to just write a quick program for that... but that really only weeds out "hacker" files that are foolish enough to not follow naming conventions...

Link to comment
Share on other sites

Does it slow down the server if it has to scan the entire directory to find the one file?

 

Well, yeah, if you're doing a linear search then it will obviously potentially take longer time finding what you're looking for with a larger problem size.

 

How are you doing the search?

 

Search is query driven. Pulls the file name from the database then gets the file based on the name

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.