Smbjwrapper Versions Save

A modern object orientated library for Samba SMB

1.2.0

1 year ago

New Features

  • Use the latest smbj version 0.11.5
  • The SmbConnection class can now delay the SMB connection until the first real SMB request is made (So called lazy initialization). This feature is useful for systems that create too many parallel SMB sessions that would exceed the SMB session pool. The SMB connection is made on the first method call that requires an active SMB connection.
  • The SmbConnection class now provides a SmbConnection.isConnectionAlive() method to check if the SMB connection is alive. If the SMB connection is not alive, a call to SmbConnection.ensureConnectionIsAlive() recreates the SMB connection if required. This feature is useful for system that use a long living SmbConnection where the SMB connection times out and it's not possible to recreate the SmbConnection manually.
  • The SmbOutputStream now provides two overloaded methods SmbOutputStream.write(bytes) and SmbOutputStream.write(bytes, offset, length) methods for more fine grained write scenarios. The second function only works in non-appending context.

Breaking Changes

  • None

Known Issues

  • None

1.1.0

4 years ago

New Features

  • None

Breaking Changes

  • Rename the methods SmbDirectory.listFiles(*) to SmbDirectory.listItems(*). Otherwise developer expect the method only returns files - but it returns files and directories.

Known Issues

  • None

1.0.0

4 years ago

New Features

  • First stable release with version 1.0.0
  • Use the latest smbj version v0.10.0
  • Make it possible to append content to an existing file via SmbFile.getOutputStream(boolean appendContent)
  • Make it possible to check if a file is hidden via SmbFile.isHidden()
  • Make it possible to list files and directories via SmbDirectory.listFiles()

Breaking Changes

  • Renamed all classes from Shared* to Smb*
  • The SmbItem.renameTo method now returns the renamed item (The current object is not touched anymore because it is immutable)

Known Issues

  • None

0.0.8

5 years ago

New Features

  • Add the possibility to list files/directories via SharedDirectory.listFiles(Predicate<SharedItem> searchPredicate, boolean searchRecursive) and SharedDirectory.listFiles(String searchPattern, boolean searchRecursive)
  • Add the possibility to rename files/directories with SharedItem.renameTo(String newFileName, boolean replaceIfExist)
  • Add the possibility to ensure the directory existence with SharedDirectory.ensureExists()
  • Use a more sophisticated exception type (IOException instead of Exception) for SharedConnection.close()

Breaking Changes

  • None

Known Issues

  • None

0.0.7

5 years ago

New Features

Breaking Changes

  • Don't create an empty file when someone calls SharedFile.getInputStream() on a non-existing file, but instead fail with a smbj exception

Known Issues

  • None

0.0.1

5 years ago

New Features

  • Access Samba shares and traverse the share
  • List all directories and files
  • Create/delete directories and files
  • Upload/download files

Breaking Changes

  • None (Initial release)

Known Issues

  • Creating a directory that has an non existing parent path will fail

0.0.6

5 years ago

New Features

  • Add the possibility to use a custom SmbConfig config in the SharedConnection
  • Add the possibility to read time attributes like creation time, last access time, last change time and change time
  • Add the possibility to read the file size of a file
  • Automatically create a non-existing file when someone is accessing the input stream to read/download a file

Breaking Changes

  • None

Known Issues

  • Somehow the creation time of a file gets updated when someone is accessing the input stream of the file. This looks like a wrong open mode or something similar

0.0.5

5 years ago

New Features

  • Fix a bug that doesn't allow the download of read-only files

Breaking Changes

  • The method SharedItem.getSmbPath doesn't return a trailing back slash. This needs some further investigation

Known Issues

  • No new issues (See the existing issues)

0.0.4

6 years ago

New Features

  • Clean up the library and improve some internal code

Breaking Changes

  • None

Known Issues

  • No new issues (See the existing issues)

0.0.3

6 years ago

New Features

  • Redesign the session management and provide a shared connection. This results in a better performance and fewer open SMB sessions, but will lead to a breaking change
  • Redesign the internal functionality and make it faster
  • Adapt the documentation

Breaking Changes

  • Provide a shared connection that provides a better performance and results in fewer open sessions. All code has to be adapted according to the README.md

Known Issues

  • No new issues. New bugs due the redesign might occur (See the existing issues)