Connect app to site with socket
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
'use strict'
|
||||
|
||||
// Depedencies
|
||||
let diff = require( 'diff' )
|
||||
|
||||
class File
|
||||
{
|
||||
constructor( _name, _content )
|
||||
@@ -31,4 +34,4 @@ class File
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = File
|
||||
module.exports = File
|
||||
|
||||
@@ -11,9 +11,9 @@ class Project
|
||||
{
|
||||
this.name = name
|
||||
this.folders = {
|
||||
root:
|
||||
'.':
|
||||
{
|
||||
name : 'root',
|
||||
name : '.',
|
||||
files : {},
|
||||
folders: {}
|
||||
}
|
||||
@@ -124,7 +124,7 @@ class Project
|
||||
// Set up
|
||||
let normalize_path = path.normalize( _path ),
|
||||
path_parts = normalize_path.split( path.sep ),
|
||||
folder = this.folders.root
|
||||
folder = this
|
||||
|
||||
for( let _path_part of path_parts )
|
||||
{
|
||||
@@ -156,7 +156,7 @@ class Project
|
||||
|
||||
let normalize_path = path.normalize( _path ),
|
||||
path_parts = normalize_path.split( path.sep ),
|
||||
folder = this.folders.root,
|
||||
folder = this,
|
||||
found = true
|
||||
|
||||
for( let _path_part of path_parts )
|
||||
|
||||
Reference in New Issue
Block a user