Removed the use of the shift array method which was removing the base
folder entry from tree.
Issue-ID: CCSDK-1171
Change-Id: Ic07a9fb89f9daba8d773d1d592c49566b28ac8f9
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
}
fileChanged(e: any) {
+ this.paths = [];
this.file = e.target.files[0];
this.zipFile.files = {};
this.zipFile.loadAsync(this.file)
paths.forEach((path) => {
const pathParts = path.name.split('/');
- pathParts.shift();
+ // pathParts.shift();
let currentLevel = tree;
pathParts.forEach((part) => {
const newPart = {
name: part,
children: [],
- data: path.data
+ data: path.data,
+ path : path.name
};
if(part.trim() == this.blueprintName.trim()) {
this.activationBlueprint = path.data;