enum: ashet.FileMode
Items
open_existing = 0opens file when it exists on disk
open_always = 1creates file when it does not exist, or opens the file without truncation.
create_new = 2creates file when there is no file with that name
create_always = 3creates file when it does not exist, or opens the file and truncates it to zero length