Definition at line 152 of file Utils.py.
◆ __init__()
Definition at line 157 of file Utils.py.
157 def __init__(self, string, subdirLen=SUBDIR_LEVEL1_LEN):
161 self.subdirLen = subdirLen
163 if "CONTENT_STORE_PATH" in os.environ
and os.environ[
"CONTENT_STORE_PATH"] !=
"":
164 logger.debug(
"os.environ[CONTENT_STORE_PATH]: set to %s", os.environ[
"CONTENT_STORE_PATH"])
166 self.string += os.environ[
"CONTENT_STORE_PATH"]
168 logger.debug(
"os.environ[CONTENT_STORE_PATH]: not set.")
def __init__(self)
constructor
◆ getDir()
def app.Utils.PathMaker.getDir |
( |
|
self | ) |
|
Definition at line 170 of file Utils.py.
171 if len(self.string) > self.subdirLen:
172 return self.string[:self.subdirLen] + self.SUBDIR_CHAR + self.string[self.subdirLen:]
◆ string
app.Utils.PathMaker.string |
◆ SUBDIR_CHAR
string app.Utils.PathMaker.SUBDIR_CHAR = "/" |
|
static |
◆ SUBDIR_LEVEL1_LEN
int app.Utils.PathMaker.SUBDIR_LEVEL1_LEN = 2 |
|
static |
◆ subdirLen
app.Utils.PathMaker.subdirLen |
The documentation for this class was generated from the following file: