@@ -15,50 +15,50 @@ namespace shogun
15
15
16
16
~NullFileSystem () override = default ;
17
17
18
- std::unique_ptr<RandomAccessFile> new_random_access_file (
19
- const std::string& fname) override
18
+ std::error_condition new_random_access_file (
19
+ const std::string& fname, std::unique_ptr<RandomAccessFile>*) const override
20
20
{
21
21
throw ShogunNotImplementedException (" new_random_access_file unimplemented" );
22
22
}
23
23
24
- std::unique_ptr<WritableFile> new_writable_file (
25
- const std::string& fname) override
24
+ std::error_condition new_writable_file (
25
+ const std::string& fname, std::unique_ptr<WritableFile>*) const override
26
26
{
27
27
throw ShogunNotImplementedException (" NewWritableFile new_writable_file" );
28
28
}
29
29
30
- std::unique_ptr<WritableFile> new_appendable_file (
31
- const std::string& fname) override
30
+ std::error_condition new_appendable_file (
31
+ const std::string& fname, std::unique_ptr<WritableFile>*) const override
32
32
{
33
33
throw ShogunNotImplementedException (" new_appendable_file unimplemented" );
34
34
}
35
35
36
- bool file_exists (const std::string& fname) override
36
+ std::error_condition file_exists (const std::string& fname) const override
37
37
{
38
38
throw ShogunNotImplementedException (" file_exists unimplemented" );
39
39
}
40
40
41
- void delete_file (const std::string& fname) override
41
+ std::error_condition delete_file (const std::string& fname) const override
42
42
{
43
43
throw ShogunNotImplementedException (" delete_file unimplemented" );
44
44
}
45
45
46
- void create_dir (const std::string& dirname) override
46
+ std::error_condition create_dir (const std::string& dirname) const override
47
47
{
48
48
throw ShogunNotImplementedException (" create_dir unimplemented" );
49
49
}
50
50
51
- void delete_dir (const std::string& dirname) override
51
+ std::error_condition delete_dir (const std::string& dirname) const override
52
52
{
53
53
throw ShogunNotImplementedException (" delete_dir unimplemented" );
54
54
}
55
55
56
- int64_t get_file_size (const std::string& fname) override
56
+ int64_t get_file_size (const std::string& fname) const override
57
57
{
58
58
throw ShogunNotImplementedException (" get_file_size unimplemented" );
59
59
}
60
60
61
- void rename_file (const std::string& src, const std::string& target) override
61
+ std::error_condition rename_file (const std::string& src, const std::string& target) const override
62
62
{
63
63
throw ShogunNotImplementedException (" rename_file unimplemented" );
64
64
}
0 commit comments