NextDom\Helpers\Samba
Samba usage
Synopsis
class Samba
{
- // methods
- public void __construct()
- public static Samba createFromConfig()
- public static string cleanName()
- public void get()
- public IShare|null getShare()
- public void put()
- public array del()
- public array getFiles()
- public array getEntries()
- public array dir()
- private True filterByFile()
- private int compareByName()
- private int compareBySize()
- private int compareByTime()
Members
private
- $client — \Icewind\SMB\IServer
Methods
private
- compareByName() — Compare by name for sort list
- compareBySize() — Compare by size for sort list
- compareByTime() — Compare by time for sort list
- filterByFile() — Test if item is a file.
public
- __construct() — Initialize Samba process
- cleanName() — Replace special characters by -
- createFromConfig() — Create connection from config name
- del() — Delete a file from the server
- dir() — List folder content on the server
- get() — Copy file from the server
- getEntries() — Get folder content
- getFiles() — Get files list in folder
- put() — Copy file on the server