code: def _req_files_edit(self, fid, file_name=None, is_mark=0):
          
          url = self.web_api_url + '/edit'
          data = locals()
          del data['self']
          req = Request(method='POST', url=url, data=data)
          res = self.http.send(req)
          if res.state:
              return True
          else:
              raise RequestFailure('Failed to access files API.')
docs: Edit a file or directory