mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Minor cleanup
This commit is contained in:
parent
fa453296c9
commit
cba160706a
1 changed files with 6 additions and 3 deletions
|
@ -42,10 +42,11 @@ print "Created share with id <$shareId>\n";
|
|||
|
||||
assert( $shareId > 0 );
|
||||
|
||||
my $sharee = { user => configValue('share_user'),
|
||||
passwd => configValue('share_passwd'),
|
||||
url => server() };
|
||||
# put a couple of files into the shared directory in the sharer account
|
||||
glob_put( 'sharing/*', $share_dir, { user => configValue('share_user'),
|
||||
passwd => configValue('share_passwd'),
|
||||
url => server() });
|
||||
glob_put( 'sharing/*', $share_dir, $sharee);
|
||||
|
||||
# now user kf has a new directory in shared.
|
||||
|
||||
|
@ -54,11 +55,13 @@ printInfo("Initial sync, sync stuff down.");
|
|||
csync( server()."Shared" );
|
||||
assertLocalAndRemoteDir( 'Shared', 0, server() );
|
||||
|
||||
# Local file to a read/write share should be synced up
|
||||
printInfo("Put a file into the share.");
|
||||
createLocalFile( localDir(). $share_dir . "/foobar.txt", 8094 );
|
||||
csync( server()."Shared" );
|
||||
assertLocalAndRemoteDir( 'Shared', 0, server() );
|
||||
|
||||
|
||||
printInfo("Remove a Share.");
|
||||
removeShare($shareId, $share_dir);
|
||||
cleanup();
|
||||
|
|
Loading…
Reference in a new issue