def createTempFile(self, suffix=None, prefix=None, secure=True) -> 'File':
        """ Create File

        Creates a new file within the directory with a temporary file like name.

        @return: Created file.
        """
        if not secure:
            raise NotImplementedError("We only support secure files at this point")

        # tempfile.mkstemp(suffix=None, prefix=None, dir=None, text=False)

        newFileNum, newFileRealPath = tempfile.mkstemp(
            suffix=suffix, prefix=prefix, dir=self._path)
        os.close(newFileNum)

        relativePath = os.path.relpath(newFileRealPath, self.path)

        file = File(self, pathName=relativePath, exists=True)
        self._files[file.pathName] = file
        return file
def createTempFile ( self , suffix = None , prefix = None , secure = True ) -> 'File' : if not secure : raise NotImplementedError ( "We only support secure files at this point" ) newFileNum , newFileRealPath = tempfile . mkstemp ( suffix = suffix , prefix = prefix , dir = self . _path ) os . close ( newFileNum ) relativePath = os . path . relpath ( newFileRealPath , self . path ) file = File ( self , pathName = relativePath , exists = True ) self . _files [ file . pathName ] = file return file
Create File

        Creates a new file within the directory with a temporary file like name.

        @return: Created file.