Check if symbolic link on Samba share with python -


can know python windows if files have access on samba share "real" files or symbolic links ? tried os.path.islink returns false documentation states:

always false if symbolic links not supported

is there other way ?

i used pysmb access samba shares python , found according ms documentation (symbolic) link not taken account in protocol specification.

i tested smbclient under linux (ubuntu) , there no difference between links , directory.

so seems limitation of samba specification.

ps: project of mine aims scan recursively directory structure (samba share), can loop forever in case of symbolic link, since cannot determine if it's real directory or symbolic link.


Comments