This file is indexed.

/usr/share/shedskin/lib/os/path.hpp is in shedskin 0.9.4-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* Copyright 2005-2011 Mark Dufour and contributors; License Expat (See LICENSE) */

#ifndef __PATH_HPP
#define __PATH_HPP

#include "builtin.hpp"
#include "os/__init__.hpp"
#include "stat.hpp"

using namespace __shedskin__;

namespace __os__ {
namespace __path__ {

extern str *__name__, *altsep, *curdir, *defpath, *devnull, *extsep, *pardir, *pathsep, *sep;
extern tuple2<str *, str *> *const_2;
extern str *const_0, *const_1, *const_10, *const_11, *const_12, *const_13, *const_14, *const_15, *const_16, *const_17, *const_18, *const_19, *const_3, *const_4, *const_5, *const_6, *const_7, *const_8, *const_9;
#ifdef WIN32
extern __ss_int supports_unicode_filenames;
#endif

str *normcase(str *s);
__ss_bool isabs(str *s);
str *joinl(list<str *> *l);
str *join(__ss_int n, ...);
tuple2<str *, str *> *split(str *p);
tuple2<str *, str *> *splitext(str *p);
tuple2<str *, str *> *splitdrive(str *p);
str *basename(str *p);
str *dirname(str *p);
str *commonprefix(list<str *> *m);
__ss_int getsize(str *filename);
double getmtime(str *filename);
double getatime(str *filename);
double getctime(str *filename);
__ss_bool islink(str *path);
__ss_bool exists(str *path);
__ss_bool lexists(str *path);
__ss_bool isdir(str *path);
__ss_bool isfile(str *path);
str *normpath(str *path);
str *abspath(str *path);
str *realpath(str *filename);

#ifndef WIN32
__ss_bool samefile(str *f1, str *f2);
__ss_bool samestat(__os__::__cstat *s1, __os__::__cstat *s2);
str *_resolve_link(str *path);
#endif

#ifndef WIN32
template <class A> void *walk(str *top, void *(*func)(A, str *, list<str *> *), A arg) {
    list<str *> *__21, *names;
    list<str *>::for_in_loop __123;
    str *name;
    __ss_int __23;
    __os__::__cstat *st;

    try {
        names = __os__::listdir(top);
    } catch (__os__::error *) {
        return NULL;
    }
    func(arg, top, names);

    FOR_IN(name,names,21,23,123)
        name = join(2, top, name);
        try {
            st = __os__::lstat(name);
        } catch (__os__::error *) {
            continue;
        }
        if (__stat__::__ss_S_ISDIR(st->st_mode)) {
            walk(name, func, arg);
        }
    END_FOR

    return NULL;
}

#else
template <class A> void *walk(str *top, void *(*func)(A, str *, list<str *> *), A arg) {
    list<str *> *__33, *names;
    list<str *>::for_in_loop __123;
    str *name;
    tuple2<str *, str *> *exceptions;
    __ss_int __35;

    try {
        names = __os__::listdir(top);
    } catch (__os__::error *) {
        return NULL;
    }
    func(arg, top, names);
    exceptions = (new tuple2<str *, str *>(2, const_0, const_3));

    FOR_IN(name,names,33,35,123)
        if ((!exceptions->__contains__(name))) {
            name = join(2, top, name);
            if (isdir(name)) {
                walk(name, func, arg);
            }
        }
    END_FOR

    return NULL;
}
#endif

void __init();

} // module namespace
} // module namespace
#endif