Description
We have several splayed tables which we have stored locally on our computer. Sometimes we will look up a specific date to see the data in the folder using the Table.from_splayed(path, symfile) command. However, if we type in a path which does not exist (e.g. because we have no data for that date, or because we simply made a typo), a new folder with that path is created. This means we end up with an empty folder that we do not really want. Instead it would be nice if it just raised the error, without creating new folders.
Sample Data
--
Version
1.0.0
Code Snippet
path = './bug_db'
dates = [date(2001, 1, 1), date(2002, 2, 2), date(2003, 3, 3)]
for date in dates:
table = Table({'timestamp': Vector([date, date, date], ray_type=Timestamp),
'id': Vector([1, 2, 3], ray_type=I32),
'price': Vector([10, 20, 30], ray_type=I32)})
table.set_splayed(f'{path}/{date}/my_parted_table')
# This line raises an error as expected, but then also creates a new folder in our directory
my_table = Table.from_splayed(f'{path}/2004-04-04/my_parted_table') # This table does not exist
Output
Before running the final line of code in the snippet above, our directory looks like this, as expected:

When running the final line we get the error:
RayforceOSError: message: No such file or directory
as we would expect.
However, afterwards a new, empty folder has been added to our directory, which looks like this:

Description
We have several splayed tables which we have stored locally on our computer. Sometimes we will look up a specific date to see the data in the folder using the
Table.from_splayed(path, symfile)command. However, if we type in a path which does not exist (e.g. because we have no data for that date, or because we simply made a typo), a new folder with that path is created. This means we end up with an empty folder that we do not really want. Instead it would be nice if it just raised the error, without creating new folders.Sample Data
--
Version
1.0.0
Code Snippet
Output
Before running the final line of code in the snippet above, our directory looks like this, as expected:

When running the final line we get the error:
RayforceOSError: message: No such file or directoryas we would expect.
However, afterwards a new, empty folder has been added to our directory, which looks like this: