platypush/plugins/esp/__init__.py
def listdir(self, directory: str = '/', **kwargs) -> List[str]:
        """
        List the content of a directory.

        :param directory: Directory name (default: root).
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        """
        directory = self.string_quote(directory)
        code = '''
import os
import json

print(json.dumps(os.listdir('{dir}')))
'''.format(dir=directory)

        return self.execute(code, **kwargs).output

        List the content of a directory.

        :param directory: Directory name (default: root).
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        
List the content of a directory.
List the content of a directory .
def listdir(self, directory: str = '/', **kwargs) -> List[str]:
        directory = self.string_quote(directory)
        code = '''
import os
import json
print(json.dumps(os.listdir('{dir}')))
'''.format(dir=directory)
        return self.execute(code, **kwargs).output
def listdir ( self , directory : str = '/' , ** kwargs ) -> List [ str ] : directory = self . string_quote ( directory ) code = '''
import os
import json

print(json.dumps(os.listdir('{dir}')))
''' . format ( dir = directory ) return self . execute ( code , ** kwargs ) . output
List the content of a directory.
List the content of a directory .
"""
        List the content of a directory.

        :param directory: Directory name (default: root).
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        """
self
directory
str
Directory name (default: root).
Directory name ( default : root ) .
kwargs
Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
Parameters to pass to : meth : ` platypush . plugins . esp . EspPlugin . execute ` .