def check_file_exists(file_name=""): """ check if this file exists. :return: <bool> True for success. <bool> False for failure. """ return path_utils.is_file( path_utils.join_file_path(get_directory_name(), file_name))
def test_filename_06(self): sequence_dir = path_utils.join_file_path(__directory_path__, 'testdirectories', 'sequence_06', 'd.0003.png') self.assertEqual(utils.do_it(path_name=sequence_dir), True)
def raiseTest_sequence_invalid(self): sequence_dir = path_utils.join_file_path(__directory_path__, 'testdirectories', 'sequence_99') self.assertRaises(IOError, utils.do_it(path_name=sequence_dir))