workingDirectory.getFile(
"tmp/work-file.json",
{ create: true },
(fileEntry) => {
fileEntry.getMetadata((metadata) => {
if (
new Date().getFullYear() - metadata.modificationTime.getFullYear() >=
5
) {
fileEntry.remove(() => {
workingDirectory.getFile(
"tmp/work-file.json",
{ create: true },
(newEntry) => {
fileEntry = newEntry;
},
);
});
}
});
},
handleError,
);Metadata: modificationTime property / notebook
Metadata: modificationTime property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.