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3FQN7AYETY7LKEJUXVIQAB4QPEPYQC
local f = App.open_for_writing(Directory..'config')
assert(f)
f:write(json.encode({
columns=column_names,
column_width=Display_settings.column_width,
cursor_col=Cursor_pane.col,
cursor_row=Cursor_pane.row,
surface_x=Display_settings.x,
surface_y=Display_settings.y,
}))
local status = App.write_file(Directory..'config',
json.encode({
columns=column_names,
column_width=Display_settings.column_width,
cursor_col=Cursor_pane.col,
cursor_row=Cursor_pane.row,
surface_x=Display_settings.x,
surface_y=Display_settings.y,
}))
assert(status)
if ok then
return result
else
return ok, err
end
end
App.open_for_writing =
function(filename)
local result = nativefs.newFile(filename)
local ok, err = result:open('w')
end
end
App.read_file =
function(path)
if not is_absolute_path(path) then
return --[[status]] false, 'Please use an unambiguous absolute path.'
end
local f, err = App.open_for_reading(path)
if err then
return --[[status]] false, err
local contents = f:read()
f:close()
return contents
App.write_file =
function(path, contents)
if not is_absolute_path(path) then
return --[[status]] false, 'Please use an unambiguous absolute path.'
end
local f, err = App.open_for_writing(path)
if err then
return --[[status]] false, err
end
f:write(contents)
f:close()
return --[[status]] true
end