Corretta creazione files

git-svn-id: svn://10.65.10.50/trunk@1311 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1995-04-28 13:14:15 +00:00
parent f364264291
commit a28345ef81

View File

@ -901,7 +901,7 @@ int TSystemisamfile::build(TRecnotype eox)
d.get(num());
TFilename f(d.name());
f = f.path();
f = f.path(); if (!is_not_slash(f.right(1)[0])) f.rtrim(1);
if (!fexist(f))
make_dir(f);
@ -1036,7 +1036,7 @@ int TSystemisamfile::update(TTrec& newrec, bool vis)
TDir dir;
dir.get(num(), _lock, _nordir, _sysdirop);
dir.get(num(), _unlock, _nordir, _sysdirop);
const char p = *dir.name();
const bool is_com = prefix().is_com();
const bool toconvert = is_com ? dir.is_com() : dir.is_firm();
@ -1079,7 +1079,7 @@ int TSystemisamfile::update(TTrec& newrec, bool vis)
setstatus(err);
return err;
}
open(_excllock);
open();
TFilename fname(filename());
TString s(80);
s.format("Aggiornamento archivio %s", (const char*) fname);