application.backupExistingFile = function (streamName) { var srcpath = "C:/flvs/vods/test.flv" ; var oldRecording = new File(srcpath); trace("oldRecording is - " + oldRecording); if(oldRecording.exists) { trace("oldRecording is exists - " + oldRecording); var backupPath = srcpath + "backup completed on " + ".flv"; //oldRecording.renameTo(backupPath); oldRecording.copyTo(backupPath); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)