Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/hierynomus/smbj/utils/SmbFiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ public static int copy(File source, DiskShare share, String destPath, boolean ov
/**
* Create a set of nested sub-directories in the given path, for example, 2345 \ 3456 \ 4453 \ 123123.txt
*/
public void mkdirs(DiskShare diskShare, String path) throws SMBApiException {
public static void mkdirs(DiskShare diskShare, String path) throws SMBApiException {
SmbPath smbPath = new SmbPath(diskShare.getSmbPath(), path);
mkdirs(diskShare, smbPath);
}

/**
* Create a set of nested sub-directories in the given path, for example, 2345 \ 3456 \ 4453 \ 123123.txt
*/
public void mkdirs(DiskShare diskShare, SmbPath path) throws SMBApiException {
public static void mkdirs(DiskShare diskShare, SmbPath path) throws SMBApiException {
if (!diskShare.folderExists(path.getPath())) {
// Ensure the parent path exists
mkdirs(diskShare, path.getParent());
Expand Down