Skip to content
Snippets Groups Projects
Commit 8c3e7aba authored by Jonas Walldén's avatar Jonas Walldén
Browse files

Fix a few incorrect Filesystem.Stat accessors.

parent 771a51b2
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ void create(Filesystem.Base _fs,
void got_request(Protocols.HTTP.Server.Request rid)
{
Filesystem.Stat st=fs->stat(rid->not_query);
if (st && st->isreg())
if (st && st->isreg)
{
Stdio.File f=fs->open(rid->not_query,"r");
if (f)
......
......@@ -481,7 +481,7 @@ int untar(object source, string path, void|string cwd) {
// Get the actual filename
fname = ((fname / "/") - ({""}))[-1];
object stat = t->cd(cwd)->stat(fname);
if (stat->isdir()) {
if (stat->isdir) {
string dir = Stdio.append_path(path, fname);
c++;
cc++;
......@@ -490,7 +490,7 @@ int untar(object source, string path, void|string cwd) {
mkdir(dir);
c += untar(source, dir, Stdio.append_path(cwd, fname));
}
else if (stat->isreg()) {
else if (stat->isreg) {
string file = Stdio.append_path(path, fname);
if (mixed err = catch{
if (DEBUG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment