lib/nodes/lib.js
function() {

        var _this = this;
        return QFS.statLink(this.getPath())
            .fail(function() {
                return false;
            })
            .then(function(stat) {

                if (!stat) return;

                /* jshint -W109 */
                if (!stat.isSymbolicLink()) {
                    return Q.reject(UTIL.format("SymlinkLibraryNode: Path '%s' is exists and is not a symbolic link",
                        _this.getPath()));
                }
                /* jshint +W109 */

                return QFS.remove(_this.getPath());

            })
            .then(function() {

                var parent = PATH.dirname(_this.getPath());
                return QFS.exists(parent)
                    .then(function(exists) {

                        /* jshint -W109 */
                        if(!exists) {
                            LOGGER.verbose("SymlinkLibraryNode: Creating parent directory for target '%s'",
                                _this.getPath());
                            return QFS.makeTree(parent);
                        }
                        /* jshint +W109 */

                    });

            })
            .then(function() {
                return QFS.symbolicLink(_this.getPath(), _this.relative);
            });

    }
function() {

        var _this = this;
        return QFS.statLink(this.getPath())
            .fail(function() {
                return false;
            })
            .then(function(stat) {

                if (!stat) return;

                /* jshint -W109 */
                if (!stat.isSymbolicLink()) {
                    return Q.reject(UTIL.format("SymlinkLibraryNode: Path '%s' is exists and is not a symbolic link",
                        _this.getPath()));
                }
                /* jshint +W109 */

                return QFS.remove(_this.getPath());

            })
            .then(function() {

                var parent = PATH.dirname(_this.getPath());
                return QFS.exists(parent)
                    .then(function(exists) {

                        /* jshint -W109 */
                        if(!exists) {
                            LOGGER.verbose("SymlinkLibraryNode: Creating parent directory for target '%s'",
                                _this.getPath());
                            return QFS.makeTree(parent);
                        }
                        /* jshint +W109 */

                    });

            })
            .then(function() {
                return QFS.symbolicLink(_this.getPath(), _this.relative);
            });

    }
function ( ) { var _this = this ; return QFS . statLink ( this . getPath ( ) ) . fail ( function ( ) { return false ; } ) . then ( function ( stat ) { if ( ! stat ) return ; /* jshint -W109 */ if ( ! stat . isSymbolicLink ( ) ) { return Q . reject ( UTIL . format ( "SymlinkLibraryNode: Path '%s' is exists and is not a symbolic link" , _this . getPath ( ) ) ) ; } /* jshint +W109 */ return QFS . remove ( _this . getPath ( ) ) ; } ) . then ( function ( ) { var parent = PATH . dirname ( _this . getPath ( ) ) ; return QFS . exists ( parent ) . then ( function ( exists ) { /* jshint -W109 */ if ( ! exists ) { LOGGER . verbose ( "SymlinkLibraryNode: Creating parent directory for target '%s'" , _this . getPath ( ) ) ; return QFS . makeTree ( parent ) ; } /* jshint +W109 */ } ) ; } ) . then ( function ( ) { return QFS . symbolicLink ( _this . getPath ( ) , _this . relative ) ; } ) ; }
Make node.

@return {Promise * Undefined}
Make node .