addRecentFile
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/files/recent/recentFiles / addRecentFile
Function: addRecentFile()
addRecentFile(
filePath:string):void
Defined in: utils/files/recent/recentFiles.js:113
Adds a file path to the list of recent files. If the file already exists in the list, it is moved to the top of the list. The updated list is then saved to disk.
Parametersβ
filePathβ
string
The path of the file to add to the recent files list.
Returnsβ
void