Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading files #6

Open
RoniJacobson opened this issue Jul 5, 2020 · 2 comments
Open

Reading files #6

RoniJacobson opened this issue Jul 5, 2020 · 2 comments
Assignees
Labels

Comments

@RoniJacobson
Copy link

RoniJacobson commented Jul 5, 2020

Does the capability to read files exist? I can't see it when looking through the docs. It's a pretty critical feature that this plugin definitely needs if not.

@biezhihua
Copy link
Owner

This requires some development work

@biezhihua
Copy link
Owner

biezhihua commented Jul 11, 2020

I checked that videolan libDSM does support reading and writing files, but it does require some development work.


int       smb_fopen(smb_session *s, smb_tid tid, const char *path,
                    uint32_t mod, smb_fd *fd);

void      smb_fclose(smb_session *s, smb_fd fd);

ssize_t   smb_fread(smb_session *s, smb_fd fd, void *buf, size_t buf_size);

ssize_t   smb_fwrite(smb_session *s, smb_fd fd, void *buf, size_t buf_size);

ssize_t   smb_fseek(smb_session *s, smb_fd fd, off_t offset, int whence);

int  smb_file_rm(smb_session *s, smb_tid tid, const char *path);

int  smb_file_mv(smb_session *s, smb_tid tid, const char *old_path, const char *new_path);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants