mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
allow to change local files
- fuse/filecache:
* add filecache_upload_patch
* allow opening files in modes other than RDONLY
- fuse/hashtbl:
* add folder_tree_upload_patch
- fuse/operations:
* allow opening files in modes other than RDONLY
* add members to private context which allow tracking of
not-yet-uploaded files and files opened for writing and
files opened in read-only mode
- mfapi/apicalls/upload_patch:
* supply x-filename and x-filesize headers
- mfapi/apicalls/upload_simple:
* do not supply the x-filehash header as it is not used by the
server
- utils/hash:
* hex characters must be lower case for the server
- utils/strings:
* clean up unused functions strdup_join, strdup_substr,
string_chomp
- utils/stringv:
* complete rewrite with different string vector implementation
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include "hashtbl.h"
|
||||
#include "operations.h"
|
||||
#include "../utils/strings.h"
|
||||
#include "../utils/stringv.h"
|
||||
|
||||
enum {
|
||||
KEY_HELP,
|
||||
@@ -410,8 +411,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
connect_mf(&options, ctx);
|
||||
|
||||
ctx->tmpfiles = NULL;
|
||||
ctx->num_tmpfiles = 0;
|
||||
ctx->sv_writefiles = stringv_alloc();
|
||||
ctx->sv_readonlyfiles = stringv_alloc();
|
||||
|
||||
ret = fuse_main(argc, argv, &mediafirefs_oper, ctx);
|
||||
|
||||
@@ -423,6 +424,8 @@ int main(int argc, char *argv[])
|
||||
free(ctx->configfile);
|
||||
free(ctx->dircache);
|
||||
free(ctx->filecache);
|
||||
stringv_free(ctx->sv_writefiles);
|
||||
stringv_free(ctx->sv_readonlyfiles);
|
||||
free(ctx);
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user