Skip to content

Read-Only FileSystem #42

@MosheL

Description

@MosheL

Thanks for good product !

I am trying to make a read-only file system ,based on DotNetFileSystem but with a access list from database.
this code works (the DNFS taking the list of files from SQL, and the files from the disk).

I tried to find the Options header list, on the source code, found all the HTTP Methods.
I am trying to remove the COPY, MOVE, etc, but could not remove them, as they scan for IHandler without the option to disable it .

For now I was found this (ugly) way, but Windows is trying to update the files or create files like desktop.ini, and similar.

public async Task<Stream> CreateAsync(CancellationToken cancellationToken)        {
	throw new ArgumentException("cant write");
}

I tried also to rewrite the AddWebDav function, but its a ugly workaround.

How to implement a ReadOnly attr, so the client will recognise the status and will not try to modify/lock the files ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions