302477 {
302478 optional_ptr<FileSystem> fs;
302479 if (info.context) {
302480 fs = FileSystem::GetFileSystem(*info.context);
302481 } else if (info.db) {
302482 fs = FileSystem::GetFileSystem(*info.db);
302483 } else {
302484 fs = info.config.file_system.get();
302485 }
302486 if (fs && !input.IsNull()) {
302487 auto new_home_directory = input.
ToString();
302488 if (fs->IsRemoteFile(new_home_directory)) {
302489 throw InvalidInputException("Cannot set the home directory to a remote path");
302490 }
302491 }
302492}
DUCKDB_API string ToString() const
Convert this value to a string.
Definition duckdb.cpp:133318