flask-storage 2.0.4.dev1__py3-none-any.whl → 2.0.4.dev2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flask_storage/backends/local.py +4 -1
- {flask_storage-2.0.4.dev1.dist-info → flask_storage-2.0.4.dev2.dist-info}/METADATA +1 -1
- {flask_storage-2.0.4.dev1.dist-info → flask_storage-2.0.4.dev2.dist-info}/RECORD +7 -7
- {flask_storage-2.0.4.dev1.dist-info → flask_storage-2.0.4.dev2.dist-info}/WHEEL +0 -0
- {flask_storage-2.0.4.dev1.dist-info → flask_storage-2.0.4.dev2.dist-info}/entry_points.txt +0 -0
- {flask_storage-2.0.4.dev1.dist-info → flask_storage-2.0.4.dev2.dist-info}/licenses/LICENSE +0 -0
- {flask_storage-2.0.4.dev1.dist-info → flask_storage-2.0.4.dev2.dist-info}/top_level.txt +0 -0
flask_storage/backends/local.py
CHANGED
|
@@ -42,7 +42,10 @@ class LocalBackend(BaseBackend):
|
|
|
42
42
|
|
|
43
43
|
@cached_property
|
|
44
44
|
def root(self):
|
|
45
|
-
|
|
45
|
+
root = self.config.get("root") or os.path.join(self.default_root, self.name)
|
|
46
|
+
# Pin relative roots to the process CWD: send_from_directory would
|
|
47
|
+
# otherwise anchor them to the app dir, breaking serve().
|
|
48
|
+
return os.path.abspath(root)
|
|
46
49
|
|
|
47
50
|
@cached_property
|
|
48
51
|
def default_root(self):
|
|
@@ -7,12 +7,12 @@ flask_storage/signals.py,sha256=_FXSq5KEwlHyE4aMBwOMd6XhleYDUiLd9Ut6U5Tp6cg,180
|
|
|
7
7
|
flask_storage/storage.py,sha256=kLOi-oIbJtmImtPrShxPyf-nPZWQUGTXCGJ7y8Y8lWA,15978
|
|
8
8
|
flask_storage/views.py,sha256=YngzSXuxwiT-GQFLNWrXk0SrPcyKmbrDCOubMt3Wo9g,325
|
|
9
9
|
flask_storage/backends/__init__.py,sha256=thajBIF5Ok5zAiLEZmYBHwTxjmtD6_-Y1kXnNYQH5ws,4051
|
|
10
|
-
flask_storage/backends/local.py,sha256=
|
|
10
|
+
flask_storage/backends/local.py,sha256=ooPnw2lZyX_sLgluK4sC1rQHaSBif7TPVwP0R66oNiM,4423
|
|
11
11
|
flask_storage/backends/mock.py,sha256=0-b6SfzIuVO5Uu8BlSz1uNNALyBGNHePz5o79Ef1aOw,185
|
|
12
12
|
flask_storage/backends/s3.py,sha256=CV8rwaFSUJOk5pTz4pOv_z679FZD1nuJ9NC9cJswK44,10045
|
|
13
|
-
flask_storage-2.0.4.
|
|
14
|
-
flask_storage-2.0.4.
|
|
15
|
-
flask_storage-2.0.4.
|
|
16
|
-
flask_storage-2.0.4.
|
|
17
|
-
flask_storage-2.0.4.
|
|
18
|
-
flask_storage-2.0.4.
|
|
13
|
+
flask_storage-2.0.4.dev2.dist-info/licenses/LICENSE,sha256=Jsa1CKm-fF0guY0ht3reKgv2D3ReoCjNVX0IPtreqSE,1081
|
|
14
|
+
flask_storage-2.0.4.dev2.dist-info/METADATA,sha256=fN5UqwEBKwxZpliRl76DqPtzAdfhwhmBtLiY1XJGGno,1312
|
|
15
|
+
flask_storage-2.0.4.dev2.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
16
|
+
flask_storage-2.0.4.dev2.dist-info/entry_points.txt,sha256=hX7fv5H16y_4DLa-TJKZrdSqcddfRo1AEFSN3oH0cHs,156
|
|
17
|
+
flask_storage-2.0.4.dev2.dist-info/top_level.txt,sha256=dewU5rlVVfXSOtwXxhCTSujH1TX9-8SXFK9L67Lux3U,14
|
|
18
|
+
flask_storage-2.0.4.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|