Skip to content

Saving files with long names. #219

@ignace-computing

Description

@ignace-computing

Hello!

When you have a lot of simulation parameters, the filename under which you want to save your data mighty become too long. Here is a minimal working example of such a situation:

long_word = "thisIsAVeryLongWordAndItCanBeEvenLonger"
very_long_dict = Dict(:long_word => long_word, :a=>0.123)
very_long_dict[:other_long_word] = long_word*long_word

dict_with_results = Dict(:niceresults => true)
DATADIR_NAME = "testDir"

wsave(datadir(DATADIR_NAME, savename(very_long_dict, "bson")), dict_with_results)

That gives the following error:
IOError: stat: name too long (ENAMETOOLONG) for file ...

Would you have any ideas?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dataRelated to data managementdiscussionLet's talk about how things should be!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions