import pandas as pd;
import project.ComputerSales;
import os
import datetime



class JavaProjectService(object):
    def getAllJavaPRoject(self):
        return os.listdir('./JavaProject')

    def getAllProjectFile(self,name):
        return self.recGetFile(self,'./JavaProject/'+name)

    def getLinxiServer(self):
        return self.recGetFile(self,'./JavaProject/lingxi-server')
    

    def recGetFile(self,path):
        result=[]
        for file in os.listdir(path):
            temp={
                
            }
            temp["label"]=file
            file_path = os.path.join(path, file)  
            if os.path.isdir(file_path):  
                if file=='.idea' or file=='.git':
                    continue 
                else:
                    temp["children"]=self.recGetFile(self,file_path)  
            result.append(temp)
        return result
22fc8eb5e54ad06894dc3df6550a5f2ac3d7af58
<mask token>


class JavaProjectService(object):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class JavaProjectService(object):
    <mask token>
    <mask token>

    def getLinxiServer(self):
        return self.recGetFile(self, './JavaProject/lingxi-server')

    def recGetFile(self, path):
        result = []
        for file in os.listdir(path):
            temp = {}
            temp['label'] = file
            file_path = os.path.join(path, file)
            if os.path.isdir(file_path):
                if file == '.idea' or file == '.git':
                    continue
                else:
                    temp['children'] = self.recGetFile(self, file_path)
            result.append(temp)
        return result

<mask token>


class JavaProjectService(object):

    def getAllJavaPRoject(self):
        return os.listdir('./JavaProject')

    def getAllProjectFile(self, name):
        return self.recGetFile(self, './JavaProject/' + name)

    def getLinxiServer(self):
        return self.recGetFile(self, './JavaProject/lingxi-server')

    def recGetFile(self, path):
        result = []
        for file in os.listdir(path):
            temp = {}
            temp['label'] = file
            file_path = os.path.join(path, file)
            if os.path.isdir(file_path):
                if file == '.idea' or file == '.git':
                    continue
                else:
                    temp['children'] = self.recGetFile(self, file_path)
            result.append(temp)
        return result

import pandas as pd
import project.ComputerSales
import os
import datetime


class JavaProjectService(object):

    def getAllJavaPRoject(self):
        return os.listdir('./JavaProject')

    def getAllProjectFile(self, name):
        return self.recGetFile(self, './JavaProject/' + name)

    def getLinxiServer(self):
        return self.recGetFile(self, './JavaProject/lingxi-server')

    def recGetFile(self, path):
        result = []
        for file in os.listdir(path):
            temp = {}
            temp['label'] = file
            file_path = os.path.join(path, file)
            if os.path.isdir(file_path):
                if file == '.idea' or file == '.git':
                    continue
                else:
                    temp['children'] = self.recGetFile(self, file_path)
            result.append(temp)
        return result

import pandas as pd;
import project.ComputerSales;
import os
import datetime



class JavaProjectService(object):
    def getAllJavaPRoject(self):
        return os.listdir('./JavaProject')

    def getAllProjectFile(self,name):
        return self.recGetFile(self,'./JavaProject/'+name)

    def getLinxiServer(self):
        return self.recGetFile(self,'./JavaProject/lingxi-server')
    

    def recGetFile(self,path):
        result=[]
        for file in os.listdir(path):
            temp={
                
            }
            temp["label"]=file
            file_path = os.path.join(path, file)  
            if os.path.isdir(file_path):  
                if file=='.idea' or file=='.git':
                    continue 
                else:
                    temp["children"]=self.recGetFile(self,file_path)  
            result.append(temp)
        return result