Esempio n. 1
0
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))
Esempio n. 2
0
 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)
Esempio n. 3
0
 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))