hamano / pysmbc

libsmbclient binding for Python
http://pypi.python.org/pypi/pysmbc
GNU General Public License v2.0
28 stars 27 forks source link

Context.stat() and File.fstat() Should Return os.stat_result #35

Open ldo opened 5 years ago

ldo commented 5 years ago

The following patch ldo-stat-result.patch.txt reworks Context.stat() and File.fstat() to return the same type of namedtuples as os.stat() does. This allows for symbolic names to refer to the fields, while remaining backward-compatible with existing code that expects a regular tuple.

frafra commented 4 years ago

It seems that the author would like to receive PR instead of patches: https://github.com/hamano/pysmbc/issues/33#issuecomment-538240919

frafra commented 4 years ago

I am not able to apply your patch to the current master branch. Would you please rebase it?

ldo commented 4 years ago

May require my patch for #34 to be applied first.