Check files existence.
(self, data, column_description, pairs, graph)
| 867 | super(Pool, self).__init__() |
| 868 | |
| 869 | def _check_files(self, data, column_description, pairs, graph): |
| 870 | """ |
| 871 | Check files existence. |
| 872 | """ |
| 873 | for item, name in zip((data, column_description, pairs, graph), ('data', 'column_description', 'pairs', 'graph')): |
| 874 | item = fspath(item) |
| 875 | if item is None: |
| 876 | continue |
| 877 | if item.find('://') == -1 and not os.path.isfile(item): |
| 878 | raise CatBoostError("Invalid {} path='{}': file does not exist.".format(name, item)) |
| 879 | |
| 880 | def _check_delimiter(self, delimiter): |
| 881 | if not isinstance(delimiter, STRING_TYPES): |
no test coverage detected