File manager

class gaiatest.file_manager.GaiaDeviceFileManager(device, log_level=40)[source]

File manager for Gaia instance running on a B2G device or emulator.

class gaiatest.file_manager.GaiaFileManager(device, log_level=40)[source]

Abstract file manager for Gaia.

copy_file(source, destination)[source]

Copy a file.

dir_exists(path)[source]

Return true if path exists and is a directory.

duplicate_file(path, count)[source]

Create duplicates of a file on the system and remove original.

file_exists(path)[source]

Return true if path exists and is a file.

list_items(path)[source]

List items in path.

make_dirs(filename)[source]

Make directory structure.

pull_file(path)[source]

Returns contents of file.

push_file(local_path, remote_path=None, count=1)[source]

Push a file to the system.

remove(path)[source]

Remove file or directory.

class gaiatest.file_manager.GaiaLocalFileManager(device, log_level=40)[source]

File manager for Gaia instance running locally such as desktop B2G.