public class SmbFiles
extends Object
-
Constructor Summary
Constructors
-
Method Summary
static long
Copies a local file to a destination path on the share
void
Create a set of nested sub-directories in the given path, for example, 2345 \ 3456 \ 4453 \ 123123.txt
void
Create a set of nested sub-directories in the given path, for example, 2345 \ 3456 \ 4453 \ 123123.txt
static long
Writes an input stream to a destination path on the share
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SmbFiles
public SmbFiles()
-
Method Details
-
copy
Copies a local file to a destination path on the share
- Parameters:
source - the local File
share - the share
destPath - the path to write to
overwrite - true/false to overwrite existing file
- Returns:
- the actual number of bytes that was written to the file
- Throws:
FileNotFoundException - file with the specified pathname does not exist
IOException - file could not be read
-
-
mkdirs
Create a set of nested sub-directories in the given path, for example, 2345 \ 3456 \ 4453 \ 123123.txt
- Throws:
SMBApiException
-
mkdirs
Create a set of nested sub-directories in the given path, for example, 2345 \ 3456 \ 4453 \ 123123.txt
- Throws:
SMBApiException