MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _get_uid

Function _get_uid

tools/python-3.11.9-amd64/Lib/shutil.py:909–925  ·  view source on GitHub ↗

Returns an uid, given a user name.

(name)

Source from the content-addressed store, hash-verified

907 return None
908
909def _get_uid(name):
910 """Returns an uid, given a user name."""
911 if name is None:
912 return None
913
914 try:
915 from pwd import getpwnam
916 except ImportError:
917 return None
918
919 try:
920 result = getpwnam(name)
921 except KeyError:
922 result = None
923 if result is not None:
924 return result[2]
925 return None
926
927def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0,
928 owner=None, group=None, logger=None, root_dir=None):

Callers 2

_make_tarballFunction · 0.70
chownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected