if (this.name[this.name.length -1] == '~') {
return true;
}
-
- //if (f.name.match(/~$/)) {
- // return true;
- //}
+
+ if (f.name.match(/___jb_old___$/)) {
+ return true;
+ }
+ if (f.name.match(/___jb_bak___$/)) {
+ return true;
+ }
//if (f.name.match(/^nbproject/)) {
// return true;
//}
}
public string fullpath()
{
- return this.gitpath + this.vdir + this.vname;
+ return this.gitpath + "/" + this.vname;
}
}
// if file exists, do not try and delete it.
- if (FileUtils.test(cmd.vname, FileTest.EXISTS)) {
+ if (FileUtils.test(cmd.fullpath(), FileTest.EXISTS)) {
break;
}
// if file was added, then removed,
var remove_files_f = new Array<GitMonitorQueue>();
for(var ii = 0;ii < remove_files.length;ii++) {
+
+
+
if (GitMonitorQueue.indexOfAdd(add_files, remove_files.index(ii).vname) > -1 ) {
// in add and remove - do not remvove
continue;
for(var ii = 0;ii < add_files.length;ii++) {
if (GitMonitorQueue.indexOfAdd(remove_files, add_files.index(ii).vname) > -1 ) {
// the add file is in the remove list, and it does not exist - do not add it..
- if (!FileUtils.test(add_files.index(ii).vname, FileTest.EXISTS)) {
+ print("check exists ? %s\n",add_files.index(ii).fullpath());
+
+ if (!FileUtils.test(add_files.index(ii).fullpath(), FileTest.EXISTS)) {
continue;
}