Functions | Variables
rspy.file Namespace Reference

Functions

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)
 

Variables

bool linux = True
 
 system = platform.system()
 

Function Documentation

def rspy.file._grep (   pattern,
  lines,
  context 
)
private
helper function for grep

Definition at line 53 of file file.py.

def rspy.file.cat (   filename)

Definition at line 82 of file file.py.

def rspy.file.find (   dir,
  mask 
)
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 file.py.

def rspy.file.grep (   expr,
  args 
)

Definition at line 73 of file file.py.

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 file.py.

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 file.py.

def rspy.file.remove_newlines (   lines)

Definition at line 47 of file file.py.

Variable Documentation

bool rspy.file.linux = True

Definition at line 12 of file file.py.

rspy.file.system = platform.system()

Definition at line 10 of file file.py.



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