scruffy/file.py
def write(self, filename, data, mode='w'):
        """
        Write to a file in the directory.
        """
        with open(self.path_to(str(filename)), mode) as f:
            f.write(data)
def write(self, filename, data, mode='w'):
        with open(self.path_to(str(filename)), mode) as f:
            f.write(data)
def write ( self , filename , data , mode = 'w' ) : with open ( self . path_to ( str ( filename ) ) , mode ) as f : f . write ( data )
Write to a file in the directory.
Write to a file in the directory .