Skip to content
Snippets Groups Projects
Commit 5dbbe611 authored by deuce's avatar deuce
Browse files

Remove the todo_padfname stuff. DM did it.

parent 5bc1107f
No related branches found
No related tags found
No related merge requests found
...@@ -293,7 +293,6 @@ while(1) { ...@@ -293,7 +293,6 @@ while(1) {
console.putmsg(bbs.text(R_Download)); console.putmsg(bbs.text(R_Download));
break; break;
} }
str=todo_padfname(str);
if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_DOWNLOAD)) { if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_DOWNLOAD)) {
var s=0; var s=0;
console.putmsg(bbs.text(SearchingAllDirs)); console.putmsg(bbs.text(SearchingAllDirs));
...@@ -387,7 +386,6 @@ while(1) { ...@@ -387,7 +386,6 @@ while(1) {
str=bbs.get_filespec(); str=bbs.get_filespec();
if(str==null) if(str==null)
break file; break file;
str=todo_padfname(str);
if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_INFO)) { if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_INFO)) {
var s=0; var s=0;
console.putmsg(bbs.text(SearchingAllDirs)); console.putmsg(bbs.text(SearchingAllDirs));
...@@ -528,7 +526,6 @@ while(1) { ...@@ -528,7 +526,6 @@ while(1) {
str=bbs.get_filespec(); str=bbs.get_filespec();
if(str==null) if(str==null)
break fileremove; break fileremove;
str=todo_padfname(str);
if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_REMOVE)) { if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_REMOVE)) {
var s=0; var s=0;
console.putmsg(bbs.text(SearchingAllDirs)); console.putmsg(bbs.text(SearchingAllDirs));
...@@ -581,7 +578,6 @@ while(1) { ...@@ -581,7 +578,6 @@ while(1) {
str=bbs.get_filespec(); str=bbs.get_filespec();
if(str==null) if(str==null)
break fileview; break fileview;
str=todo_padfname(str);
if(!bbs.list_files(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FL_VIEW)) { if(!bbs.list_files(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FL_VIEW)) {
console.putmsg(bbs.text(SearchingAllDirs)); console.putmsg(bbs.text(SearchingAllDirs));
for(i=0; i<file_area.lib_list[bbs.curlib].dir_list.length; i++) { for(i=0; i<file_area.lib_list[bbs.curlib].dir_list.length; i++) {
...@@ -1135,29 +1131,6 @@ function todo_getfiles(lib, dir) ...@@ -1135,29 +1131,6 @@ function todo_getfiles(lib, dir)
return(file_size(path)/22); /* F_IXBSIZE */ return(file_size(path)/22); /* F_IXBSIZE */
} }
function todo_padfname(fname) {
var name='';
var ext='';
var dotpos=fname.lastIndexOf('.');
if(dotpos > -1) {
name=fname.substr(0,dotpos);
ext=fname.substr(dotpos+1);
}
else {
name=fname;
}
if(name.length > 8) {
/* Hack... make long specs match */
name=name.substr(0,7)+'*';
}
if(ext.length > 3) {
/* Hack... make long specs match */
ext=ext.substr(0,2)+'*';
}
return(format("%-8.8s-3.3s",name,ext));
}
function clear_screen() function clear_screen()
{ {
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment