Cook Book — pysftp 0.2.9 documentation
pysftp.readthedocs.io/en/release_0.2.9/cookbook.htmlpysftp.st_mode_to_int() ¶ converts an octal mode result back to an integer representation. The .st_mode information returned in SFTPAttribute object .stat(fname).st_mode contains extra things you probably don’t care about, in a form that has been converted from octal to int so you won’t recognize it at first.This function clips the extra bits and hands you the file mode bits in a way …