file
utils
This is used to maintain lists of userIds to socketIds and channelIds to socketIds
Given a basename, find a matching file with an extension.
Param | Type | Details |
---|---|---|
basepath | Object | Path to directory |
Array|null | Array of files or |
findExtForBase('views/main') => '.jade' findExtForBase('css/i-dont-exist') => null
In synchronous mode returns if givven filePath
is directory or not
Boolean | TRUE if givven |
Loads SocketStream's package.json file from the root directory
Object|Error | JSON object or thorws an eror if unable to find or parse SocketStream's package.json file |
Reads the contents of a dir. Adapted from https://gist.github.com/825583
Param | Type | Details |
---|---|---|
start | String | Directory absolute path to lookup |