What's Changed
- Bump new version after release by @jborean93 in #247
- Add smb_info to a scandir result by @jborean93 in #251
- Use UTC tzinfo datetime values by @jborean93 in #252
- Added default timeout on connection.receive() by @Robbert-Brand in #257
- Show low-level OS error on TCP connection errors. by @adiroiban in #264
- Wait for message thread to stop on disconnect. by @adiroiban in #262
- Fix up compound request session and tree ids by @jborean93 in #266
- Shutil.copyfile will open source with read share by @jborean93 in #265
- Fix up endless auth loop by @jborean93 in #267
- Prepare for v1.13.0 release by @jborean93 in #275
New Contributors
- @Robbert-Brand made their first contribution in #257
1.13.0 - 2024-03-21
- Added the property
smb_info
onSMBDirEntry
which returns a named tupleSMBDirEntryInformation
containing metadata already retrieved in thescandir
operation.- This avoid having to call
stat()
to retrieve data like the file attributes or datetime fields that is already available
- This avoid having to call
- Ensure
DateTimeField
values are set toUTC
timezones as FILETIME values are in UTC - Stop using
datetime.datetime.utcfromtimestamp()
as it has been deprecated - Added default timeout for disconnect operations for 60 seconds to ensure the process doesn't hang forever when closing a broken connection
smbprotocol.connection.Connection.disconnect()
now waits (with a timeout) for the message processing threads to be stopped before returning.- Do not set the SMB SessionId and TreeId in the headers to
0xFFFFFFFF
for related compound requests
- Ensures the source file for
shutil.copyfile
is opened withshare_access="r"
for better compatibility with files already opened by something else - Remove endless authentication loop when the context is complete and no more input messages are needed
Full Changelog: v1.12.0...v1.13.0