Corretta creazione files
git-svn-id: svn://10.65.10.50/trunk@1311 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f364264291
commit
a28345ef81
@ -901,7 +901,7 @@ int TSystemisamfile::build(TRecnotype eox)
|
|||||||
d.get(num());
|
d.get(num());
|
||||||
TFilename f(d.name());
|
TFilename f(d.name());
|
||||||
|
|
||||||
f = f.path();
|
f = f.path(); if (!is_not_slash(f.right(1)[0])) f.rtrim(1);
|
||||||
if (!fexist(f))
|
if (!fexist(f))
|
||||||
make_dir(f);
|
make_dir(f);
|
||||||
|
|
||||||
@ -1036,7 +1036,7 @@ int TSystemisamfile::update(TTrec& newrec, bool vis)
|
|||||||
|
|
||||||
TDir dir;
|
TDir dir;
|
||||||
|
|
||||||
dir.get(num(), _lock, _nordir, _sysdirop);
|
dir.get(num(), _unlock, _nordir, _sysdirop);
|
||||||
const char p = *dir.name();
|
const char p = *dir.name();
|
||||||
const bool is_com = prefix().is_com();
|
const bool is_com = prefix().is_com();
|
||||||
const bool toconvert = is_com ? dir.is_com() : dir.is_firm();
|
const bool toconvert = is_com ? dir.is_com() : dir.is_firm();
|
||||||
@ -1079,7 +1079,7 @@ int TSystemisamfile::update(TTrec& newrec, bool vis)
|
|||||||
setstatus(err);
|
setstatus(err);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
open(_excllock);
|
open();
|
||||||
TFilename fname(filename());
|
TFilename fname(filename());
|
||||||
TString s(80);
|
TString s(80);
|
||||||
s.format("Aggiornamento archivio %s", (const char*) fname);
|
s.format("Aggiornamento archivio %s", (const char*) fname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user