Functions | Variables
rspy.file Namespace Reference


def _grep (pattern, lines, context)
def cat (filename)
def find (dir, mask)
def grep (expr, args)
def inside_dir (root)
def is_executable (path_to_file)
def remove_newlines (lines)


bool linux = True
 system = platform.system()

Function Documentation

def rspy.file._grep (   pattern,
helper function for grep

Definition at line 53 of file

def (   filename)

Definition at line 82 of file

def rspy.file.find (   dir,
Yield all files in given directory (including sub-directories) that fit the given mask
:param dir: directory in which to search
:param mask: mask to compare file names to

Definition at line 25 of file

def rspy.file.grep (   expr,

Definition at line 73 of file

def rspy.file.inside_dir (   root)
Yield all files found in root, using relative names ('root/a' would be yielded as 'a')

Definition at line 16 of file

def rspy.file.is_executable (   path_to_file)
:param path_to_file: path to a file
:return: whether the file is an executable or not

Definition at line 36 of file

def rspy.file.remove_newlines (   lines)

Definition at line 47 of file

Variable Documentation

bool rspy.file.linux = True

Definition at line 12 of file

rspy.file.system = platform.system()

Definition at line 10 of file

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:43