platypush/plugins/esp/__init__.py
def rename(self, name: str, new_name: str, **kwargs):
        """
        Rename a file or directory.

        :param name: Current resource name.
        :param new_name: New resource name.
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        """
        name = self.string_quote(name)
        new_name = self.string_quote(new_name)
        code = '''
import os
os.rename('{old}', '{new}')
'''.format(old=name, new=new_name)

        self.execute(code, **kwargs)

        Rename a file or directory.

        :param name: Current resource name.
        :param new_name: New resource name.
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        
Rename a file or directory.
Rename a file or directory .
def rename(self, name: str, new_name: str, **kwargs):
        name = self.string_quote(name)
        new_name = self.string_quote(new_name)
        code = '''
import os
os.rename('{old}', '{new}')
'''.format(old=name, new=new_name)
        self.execute(code, **kwargs)
def rename ( self , name : str , new_name : str , ** kwargs ) : name = self . string_quote ( name ) new_name = self . string_quote ( new_name ) code = '''
import os
os.rename('{old}', '{new}')
''' . format ( old = name , new = new_name ) self . execute ( code , ** kwargs )
Rename a file or directory.
Rename a file or directory .
"""
        Rename a file or directory.

        :param name: Current resource name.
        :param new_name: New resource name.
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        """
self
name
str
Current resource name.
Current resource name .
new_name
str
New resource name.
New resource name .
kwargs
Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
Parameters to pass to : meth : ` platypush . plugins . esp . EspPlugin . execute ` .