Coder Social home page Coder Social logo

Comments (6)

TalAloni avatar TalAloni commented on July 19, 2024

Hi, Thanks,
The library was designed to support all kinds of virtual file systems,
I haven't implemented one based on DB content, but it's definitely possible.
if you want fine control over the file system then implementing the low-level INTFileStore is the way to go.
Another possibility is to implement the more basic IFileSystem (and let the adapter class do the heavy lifting), I would probably start there because it's much easier to implement (at the cost of granularity).

from smblibrary.

ciamberlini avatar ciamberlini commented on July 19, 2024

Thank you! I'll try with IFilesystem interface :-)

from smblibrary.

ciamberlini avatar ciamberlini commented on July 19, 2024

You can confirm me that in IFilesystem interface there was nothing to understand the security context in which the request was done?

from smblibrary.

TalAloni avatar TalAloni commented on July 19, 2024

Yes, there is a long explanation, but the gist is that SMBLibrary allows you fine control over which user can access which directory / file at the share level, so I felt it wasn't really necessary in IFileSystem as well.
(the lower-level INTFileStore.CreateFile does have a securityContext parameter)

p.s. Here is an (old) example that implements IFileSystem:
https://github.com/TalAloni/SMBLibrary/tree/9fe283762a21546be5787735a6fe719fa2e20172/SMBServer/DirectoryFileSystem

from smblibrary.

ciamberlini avatar ciamberlini commented on July 19, 2024

Thanks you!

from smblibrary.

lenovo96166 avatar lenovo96166 commented on July 19, 2024

great job!

from smblibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.