| Age | Commit message (Collapse) | Author |
|
Fix implementations to work as expected
(that createDirectory/File/Link fails if an entry with that name
already exists).
|
|
Add tests for them, and add basename, currently unused, for completeness
|
|
And fix errors in MUTF-8 conversion in jni.cpp
|
|
When robolectric loads multiple SDK versions it initialize
the NativeSamba class multiple times but loading libsamba.so
multiple times doesn't work. Avoid the problem by going back to
only testing one SDK level for samba.
|
|
Not been able to test the symlink code (as it is SMB1 only), instead
of having a lot of (possibly, most likely) broken code that might
be used by someone, remove it all.
|
|
Leftover from early test, there is a tree already.
|
|
|
|
|
|
sftp implementation using libssh2 and openssl
|
|
For some reason robolectric doesn't pick up the right min and max
sdk by itself so it was testing the wrong versions
|
|
|
|
Most the tests test the Tree implementation and thus should work
on all such implementations. Current exception is symlinks which
Samba backend doesn't (currently?) support.
Improve the Samba remove methods to better match the expected behavior.
|
|
|
|
Using polling (every 10s) as libsmb2 has no watch/event support.
(Unsure if SMB protocol has any support).
|
|
Two bugs:
* Didn't consider smb2_context max read/write size.
* total was not increased when max was hit
|
|
Remove unused imports and shorten lone lines
|
|
|
|
follow symlinks = no doesn't have intended effect
|
|
Remember that jni::GlobalRef can be used on multiple threads so
we can't store the env, need to call AttachCurrentThread.
Fix AttachCurrentThread (g_vm was forgotten).
More consistent move and copy constructors in refs. Removed env()
method as it would only be valid for Param and Local anyway.
|
|
Also no unix extensions (as that is SMB1).
|
|
Kotlin + truth is somewhat pedantic at times
|
|
Current user needs to be in docker group (or in some other way have
access to the docker.socket) for this to work.
Two current problems:
* listRoot() fails, no directories are found.
* gradle hangs after running the samba tests
|
|
|
|
Some backends have resources to free, such as the SambaTree.
|
|
Unittests still fail as there is no samba server to talk to (step 2).
|
|
|
|
With the exception of openDir, largely untested.
|
|
Ask for enough permissions to be able to create sockets.
|
|
|