files & folders cache implementation

S

semedao

Hi all,
I'm looking for some example , open source etc code that implement caching
of files and folders with those requirments:
1. like every file system , I can write , read , delete etc files and
folders , and put files into folders , sub folders etc.
2. every object in the cache can be accessed via: name , but also based on
some unique ID , for example , the hash of the file data.
3. deleting folder will delete all it's sub folders & files and also update
the cache.
4. every object can have various unique identifiers
5. I can put object with some unique identifier that don't have relation
with the object data , but also have unique dentifier that represent the
current state of the object data - when data is changing - this id also
change.
6. object can have various names that point to the same file / folder in the
file system (like shortcut's , but looking as the file itself)

I heard about the new "windows search" in Vista , is it support my
requirments , and if yes , how can I access it via c# .net 3 ?
thanks
 
W

Walter Wang [MSFT]

Hi semedao,

After carefully reviewed your post, I'm still not very sure about your
objective, so please correct me if I've misunderstood anything.

Windows Desktop Search is for searching files. It has API to let you create
your own IFilter, etc. However, I don't think it's likely for your purpose.
From most of your requirements it seems you're creating a virtual file
system, which means you will need to create a shell NameSpace Extension
(NSE).

You could find more information about NSE here:

#Creating a Shell Namespace Extension
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersgu
ide/shell_adv/namespaceextension/namespace.asp?frame=false

#HOWTO: RegView.exe Contains Shell Namespace Extension Example
http://support.microsoft.com/kb/178665

However, creating NSE is not trivial, and Microsoft doesn't support
creating NSE using managed code.

Anyway, would you please depict more on your requirement? Thanks.

Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top