Press on the image to return to the main documentation page.
SMB
This library is based on JCIFS library. It provides access to Microsoft Windows network file system. See this tutorial.
JCIFS and therefore also this library is licensed under the GNU Lesser General Public License. http://www.gnu.org/licenses/lgpl.html A copy of the Lesser General Public License is in the provided archive.
This library is based on JCIFS library. It provides access to Microsoft Windows network file system. See this tutorial.
Permissions:
android.permission.INTERNET
Events:
DownloadCompleted (Url As String, RemoteFile As String, Success As Boolean) UploadCompleted (Url As String, RemoteFile As String, Success As Boolean) DeleteCompleted (Url As String, RemoteFile As String, Success As Boolean) ListCompleted (Url As String, Success As Boolean, Entries() As SMBFile) MakeDirCompleted (Url As String, RemoteFile As String, Success As Boolean) RenameCompleted (Url As String, DestRemoteFile As String, Success As Boolean) CopyCompleted (DestUrl As String, DestRemoteFile As String, Success As Boolean) FreeSpaceCompleted (Url As String, RemoteFile As String, Size As Long, Success As Boolean)
This method will copy the source file or directory specified to the destination specified. The CopyCompleted event will be raised when the process completes. Example: SMB1.Copy("smb://USER-PC/", "1.jpg", "smb://USER-PC/", "2.jpg")
DeleteFile (UrlAsString, RemoteFileAsString)
This method will delete the file or directory specified by this SmbFile. If the target is a directory, the contents of the directory will be deleted as well. If a file within the directory or it's sub-directories is marked read-only, the read-only status will be removed and the file will be deleted. The DeleteCompleted event will be raised when the process completes. Example: SMB1.DeleteFile("smb://USER-PC/", "1.jpg")
Downloads a remote file and stores it in the specified path. The DownloadCompleted event will be raised when the process completes. Example: SMB1.DownloadFile("smb://USER-PC/Users/Public/", "1.jpg", File.DirRootExternal, "1.jpg")
This method returns the free disk space in bytes of the drive on which the directory or file resides. The FreeSpaceCompleted event will be raised when the process completes. Example: SMB1.GetDiskFreeSpace("smb://USER-PC/", "")
Initialize (EventNameAsString)
Initializes the object.
Initialize2 (EventNameAsString, PropertiesAsMap)
Initializes the object and sets the specified map of properties as explained on this page: SMB properties
ListFiles (UrlAsString, FilterPatternAsString)
Lists all files and folders in the given remote path. FilterPattern - DOS filter pattern. Pass an empty string to list all files and folders. The ListCompleted event will be raised when the process completes. Example: SMB1.ListFiles("smb://USER-PC/Users/Public/", "*.jpg")
MakeDir (UrlAsString, RemoteFileAsString)
This method Creates a directory with the path specified by and creating any parent directories that do not exist. The MakeDirCompleted event will be raised when the process completes. Example: SMB1.MakeDir("smb://USER-PC/Users/Public/", "NewDir")
This method will rename the file or directory specified. The RenameCompleted event will be raised when the process completes. Example: SMB1.Rename("smb://USER-PC/", "1.jpg", "2.jpg)
Uploads a local file. The UploadCompleted event will be raised when the process completes. Example: SMB1.UploadFile(File.DirRootExternal, "1.jpg", "smb://USER-PC/", "1.jpg")