@bhroam : Thanks your comments.
Update the design doc.
create_script() is an existing interface. It creates a temp file with prefix ‘PtlPbsJobScript’ and sets file permission 755
create_temp_file() creates file with 644 file permission.
If we want to have only create_temp_file() then user has to explicitly do chmod to 755 set execute permission.
Let me know you input on this.
In PTL library most of the places wherever copy file used is followed by chown & chmod. If we don’t use -p flag then file will destination user and permission automatically so we don’t need to explicitly do chown and chmod.
number of operations will reduce.