def get_private_dir(self, create=False):
if self.is_local():<EOL><INDENT>name = os.path.abspath(self.path).replace(os.path.sep, "<STR_LIT:_>")[:<NUM_LIT>]  <EOL>name = name.replace("<STR_LIT::>", "<STR_LIT:_>")  <EOL><DEDENT>else:<EOL><INDENT>server = self.server<EOL>name = "<STR_LIT>" % (server.hostname, server.port, server.base_path.replace("<STR_LIT:/>", "<STR_LIT:_>"), self.name)<EOL><DEDENT>dir = os.path.join(vaex.utils.get_private_dir(), "<STR_LIT>", name)<EOL>if create and not os.path.exists(dir):<EOL><INDENT>os.makedirs(dir)<EOL><DEDENT>return dir<EOL>
Each DataFrame has a directory where files are stored for metadata etc.

        Example

        >>> import vaex
        >>> ds = vaex.example()
        >>> vaex.get_private_dir()
        '/Users/users/breddels/.vaex/dfs/_Users_users_breddels_vaex-testing_data_helmi-dezeeuw-2000-10p.hdf5'

        :param bool create: is True, it will create the directory if it does not exist