ConsoleUser
Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com
This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.
All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.
- class FileSharing.FileSharing(system, config, s_type=None)¶
This is the <no title> for <no title> to interact with a file sharing site. The tasks are abstracted away, so a <no title> can perform them without having to be aware of what the underlying technology is.
Parameters:
system: a <no title> object to talk to the client machine
config: a <no title> object defining this user
s_type: a string defining the sharing implementor type, overriding any value in config
- delete_selected()¶
Delete the currently selected file
- download(remote, local)¶
Download the remote path to the local path
Parameters:
remote: a string of the remote path to the file
local: a string of the local path to save the file to
Examples:
user.FileSharing.download( ‘file1.txt’, r’c:tempfile1.txt’ )
- download_selected(local_path)¶
Assuming an entry is currently selected, download it.
Parameters:
local_path: the string path on the client to save the downloaded file
- select(path)¶
Select the file at the remote path
Parameters:
path: the string by which we will know the remote file to select
- select_random()¶
Select a random file currently available
- upload(path)¶
Upload a file to the site
Parameters:
path: the string path to the local file to upload