Sia-Nextcloud icon indicating copy to clipboard operation
Sia-Nextcloud copied to clipboard

Add support for creating folders

Open mtlynch opened this issue 8 years ago • 3 comments

Folder creation does not seem to be supported. When I try to create a folder named bar an error pops up saying "Could not create folder: bar" and this appears in the error logs:

webdav	Exception: upload failed: stat /tmp/oc_tmp_j4R8h7: no such file or directory
/var/www/html/custom_apps/files_external_sia/sia-php/sia.php - line 85: Sia\Client->apiPost('/renter/upload/...')
/var/www/html/custom_apps/files_external_sia/lib/Storage/Sia.php - line 112: Sia\Client->upload('bar/.dirinfo', '/tmp/oc_tmp_j4R...')
/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php - line 77: OCA\Files_External_Sia\Storage\Sia->mkdir('bar')
/var/www/html/lib/private/Files/Storage/Wrapper/PermissionsMask.php - line 102: OC\Files\Storage\Wrapper\Wrapper->mkdir('bar')
/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php - line 77: OC\Files\Storage\Wrapper\PermissionsMask->mkdir('bar')
/var/www/html/lib/private/Files/Storage/Wrapper/Availability.php - line 84: OC\Files\Storage\Wrapper\Wrapper->mkdir('bar')
/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php - line 77: OC\Files\Storage\Wrapper\Availability->mkdir('bar')
/var/www/html/lib/private/Files/View.php - line 1132: OC\Files\Storage\Wrapper\Wrapper->mkdir('bar')
/var/www/html/lib/private/Files/View.php - line 269: OC\Files\View->basicOperation('mkdir', '/Sia/bar', Array)
/var/www/html/apps/dav/lib/Connector/Sabre/Directory.php - line 180: OC\Files\View->mkdir('/Sia/bar')
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 1209: OCA\DAV\Connector\Sabre\Directory->createDirectory('bar')
/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 590: Sabre\DAV\Server->createCollection('Sia/bar', Object(Sabre\DAV\MkCol))
[internal function] Sabre\DAV\CorePlugin->httpMkcol(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/html/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method MKCOL', Array)
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/html/apps/dav/appinfo/v1/webdav.php - line 71: Sabre\DAV\Server->exec()
/var/www/html/remote.php - line 162: require_once('/var/www/html/a...')
{main}

mtlynch avatar Aug 04 '17 06:08 mtlynch

Just an update: I tried this today with the latest version from the Nextcloud app center and folder creation works, but crashes the daemon. The folder is still created however, and a .dirinfo file inside it which is successfully uploaded to Sia.

Not much is shown on the siad process besides Killed and then the process ending. Nothing showing up in Nextcloud's log either.

Still, promising nonetheless.

Edit: Just created another folder and no crash. Nice!

anoadragon453 avatar Oct 09 '17 20:10 anoadragon453

Any update on this? I'd love to get Sia+NextCloud up and running but the inability to create folders is a deal breaker for me.

mhaddy avatar Dec 24 '17 00:12 mhaddy

Folders are important!

ghost avatar Feb 06 '18 01:02 ghost