Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8721639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:15:14+00:00 2026-06-13T07:15:14+00:00

I have a physical Directory structure as : Root directory (X) -> many subdirectory

  • 0

I have a physical Directory structure as :

Root directory (X) -> many subdirectory in side root (1,2,3,4..) -> In each sub dir many files present.

Photos(Root)    
            ----        
               123456789(Child One)
                 ----
                     1234567891_w.jpg (Child two)
                     1234567891_w1.jpg(Child two)
                     1234567891_w2.jpg(Child two)
                     1234567892_w.jpg (Child two)
                     1234567892_w1.jpg(Child two)
                     1234567892_w2.jpg(Child two)
                     1234567893_w.jpg(Child two)
                     1234567893_w1.jpg(Child two)
                     1234567893_w2.jpg(Child two)
                     -----Cont      
              232344343(Child One)      
              323233434(Child One)      
              232323242(Child One)      
              232324242(Child One)      
              ----Cont..

In database I have one table having huge number of names of type “1234567891_w.jpg”.

NOTE : Both number of data in database and number of photos are in lacs.

I need an effective and faster way to check the presence of each name from database table to the physical directory structure.

  • Ex : Whether any file with “1234567891_w.jpg” name is present in physical folder inside Photos (Root).*

Please let me know if I miss any information to be given here.

Update :

I know how to find a file name existance in a directory. But I am looking for an efficient way, as it will be too much resource consuming to check each filename (from lacs of record) existance in more than 40 GB data.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:15:15+00:00Added an answer on June 13, 2026 at 7:15 am

    It might sound funny or Might be I was unclear or did not provide much information..

    But from the directory pattern I got one nice way to handle it is :

    AS the probability of existance of the file name is only in one location and that is :

    Root/SubDir/filename

    I should be using :

    File.Exists(Root/SubDir/filename);

    i.e – Photos/123456789/1234567891_w.jpg

    And I think this will be O(1)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large distributed program across many different physical servers, each program spawns
I have a directory that is named admin. There is no physical path to
I have a TortoiseHG (2.3.2) repository containing a directory at the root called cv2
I have virtual hosting with SQL Server. I don't have physical access to SQL
I am using the embedded version of RavenDb and have put the physical database
I have a system with 4 Physical Processor sockets. Running Windows 2003, I would
I have to digitize a few thousand physical documents and assign them to a
We have two different ldap providers in two different physical office locations. When I
I have an exe file simpleservice.exe in the physical path F:\SAMPLEPRODUCT\Bin ,, i need
I have two processes which access to the same physical memory(GPIO data addr). So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.