Interface: mkdtemp ( in file pbs_dshutils.py)

Visibility: public

change control: stable


Motivation for change: Currently, mkdtemp is not working as how it should work when user is trying to create a directory as another user. It creates the directory and do a chown to the specified user. However, it may fail as only root can run chown. We also need to make this interface consistent with create_temp_file().


Summary: Create a temp dir by calling "tempfile.mkdtemp"

Proposed Interface: def create_temp_dir(self, hostname=None, suffix=' ', prefix='PtlPbs', dir=None,
asuser=None,asgroup=None, mode=None, level=logging.INFOCLI2)


Existing interface: def mkdtemp(self, hostname=None, suffix=' ', prefix='PtlPbs', dir=None,
uid=None, gid=None, mode=None, level=logging.INFOCLI2)





OSS Site Map

Project Documentation Main Page

Developer Guide Pages


Ignore this.  We may use it later for page characterization.