文件操作 - filelist.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/MegaRAID Storage Manager/docs/MegaMonitor/wwhelp/wwhimpl/common/scripts/filelist.js
编辑文件内容
// Copyright (c) 2000-2001 Quadralay Corporation. All rights reserved. // function WWHFile_Object(ParamTitle, ParamHREF) { this.mTitle = ParamTitle; this.mHREF = ParamHREF; } function WWHFileList_Object() { this.mFileList = new Array(); this.mFileHash = new WWHFileHash_Object(); this.fAddFile = WWHFileList_AddFile; this.fA = WWHFileList_AddFile; this.fHREFToIndex = WWHFileList_HREFToIndex; this.fHREFToTitle = WWHFileList_HREFToTitle; this.fFileIndexToHREF = WWHFileList_FileIndexToHREF; this.fFileIndexToTitle = WWHFileList_FileIndexToTitle; } function WWHFileList_AddFile(ParamTitle, ParamHREF) { this.mFileHash[ParamHREF + "~"] = this.mFileList.length; this.mFileList[this.mFileList.length] = new WWHFile_Object(ParamTitle, ParamHREF); } function WWHFileList_HREFToIndex(ParamHREF) { var MatchIndex = -1; var Match; Match = this.mFileHash[ParamHREF + "~"]; if (typeof Match != "undefined") { MatchIndex = Match; } return MatchIndex; } function WWHFileList_HREFToTitle(ParamHREF) { var Title = ""; var MatchIndex; MatchIndex = this.fHREFToIndex(ParamHREF); if (MatchIndex != -1) { Title = this.mFileList[MatchIndex].mTitle; } else { Title = WWHStringUtilities_EscapeHTML(unescape(ParamHREF)); } return Title; } function WWHFileList_FileIndexToHREF(ParamIndex) { return this.mFileList[ParamIndex].mHREF; } function WWHFileList_FileIndexToTitle(ParamIndex) { return this.mFileList[ParamIndex].mTitle; } function WWHFileHash_Object() { }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件