eazq

A Way To Feed Btsync With Files/folders/changes For A Key

Recommended Posts

Imagine I want to use btsync to share a folder, but that folder does not actually exist.

 

Well, it does not exist on a file system that btsync can scan and checksum.

 

I'd like a way to tell btsync:

  • create a new shared folder (that is, create a new key);
  • don't care about the actual location on the local file system to bind that key to;
  • ask me (the API client) about the folder structure, file enumeration, file content stream etc;
  • I (the API client) will tell you when changes happen (file content changes, file creation, file deletion, file moving, ACL, ownership, ...);
  • when the API client is not connected to btsync, handle the (virtual) folder as unavailable (just like now btsync does for disconnected USB drives).

 

Same goal could be achieved by writing a virtual file system driver, but that's a major task for Linux/Windows, instead a way in btsync API to tell btsync that a (shared) folder is virtual and will depend on a user-mode application for all I/O could offer a portable way (for application-level developers) to share data without saving it in advance to a file system.

Share this post


Link to post
Share on other sites

@eazq

What you are asking is pretty much to replace OS API calls with calls to API client. It is not possible at current implementation - so I only can suggest with emulating it with own driver or with some stub folder.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.