unix.c
changeset 1572 6d0111113f0b
parent 1509 2c232b7d2114
child 1596 c1c439a2d5b2
equal deleted inserted replaced
1571:2324eb301f5d 1572:6d0111113f0b
    88 	// Parent directory, only if not in root already.
    88 	// Parent directory, only if not in root already.
    89 	if (_fios_path[1] != '\0') {
    89 	if (_fios_path[1] != '\0') {
    90 		fios = FiosAlloc();
    90 		fios = FiosAlloc();
    91 		fios->type = FIOS_TYPE_PARENT;
    91 		fios->type = FIOS_TYPE_PARENT;
    92 		fios->mtime = 0;
    92 		fios->mtime = 0;
       
    93 		strcpy(fios->name, "..");
    93 		strcpy(fios->title, ".. (Parent directory)");
    94 		strcpy(fios->title, ".. (Parent directory)");
    94 	}
    95 	}
    95 
    96 
    96 	// Show subdirectories first
    97 	// Show subdirectories first
    97 	dir = opendir(_fios_path[0] != '\0' ? _fios_path : "/");
    98 	dir = opendir(_fios_path[0] != '\0' ? _fios_path : "/");