Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PierreGode/Ragnar
/ generateClientMachineName
Method
generateClientMachineName
pager_lib/smb/SMBHandler.py:92–96 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
90
return
tempfile.TemporaryFile()
91
92
def
generateClientMachineName(self):
93
hostname = socket.gethostname()
94
if
hostname:
95
return
hostname.split(
'.'
)[0]
96
return
'SMB%d'
% os.getpid()
Callers
1
smb_open
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected