You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anthony Headley edited this page Apr 25, 2020
·
2 revisions
SyncFS() : nil
Brief:
Commit any buffers to disk. Do this before a user might unplug the device.
Paramiters:
Name
Type
Description
Optional
Returns:
Type
Description
Examples:
localdrive=Root().Temp.DriveCollect[2] --assuming a USB disk is plugged into slot 2localsep=GetPathSeparator()
localexportPath=GetPathOverrideFor("export", drive.path) ..sep.."export.json"localdata= {"one","two","three"}
ExportJson(exportPath, data)
-- sync the files to disk when done and before your user unplugs the deviceSyncFS()