This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfdump var="#TimeSlot(Minutslot = 15)#" /> | |
<cffunction name="TimeSlot" output="false" access="public" returntype="any"> | |
<cfargument name="Minutslot" type="numeric" required="true"> | |
<cfif 1440 MOD arguments.Minutslot NEQ 0> | |
<cfthrow type="user" message="Invalid Minute slot"> | |
</cfif> | |
<cfset var i = 0> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cleanEmptyFoldersRecursively(folder) { | |
var fs = require('fs'); | |
var path = require('path'); | |
var folderStat = fs.statSync(folder); | |
var isDir = folderStat.isDirectory(); | |
if (!isDir) { | |
return; | |
} |