forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
16 lines
1.6 KiB
HTML
16 lines
1.6 KiB
HTML
<a name="functiongraph_03_0846"></a><a name="functiongraph_03_0846"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Obtain Uploaded Files?</h1>
|
|
<div id="body0000001317723593"><p id="functiongraph_03_0846__p168651437192416">Take Python as an example. If you use <strong id="functiongraph_03_0846__b883612130391">os.getcwd()</strong> to query the current directory, the directory will be <strong id="functiongraph_03_0846__b411754820179">/opt/function</strong>. However, code has actually been uploaded to <strong id="functiongraph_03_0846__b75391447185410">/opt/function/code</strong>.</p>
|
|
<p id="functiongraph_03_0846__p386533722419">You can use either of the following methods to obtain uploaded files:</p>
|
|
<ol id="functiongraph_03_0846__ol565502613419"><li id="functiongraph_03_0846__li2655126183420">Run the <strong id="functiongraph_03_0846__b93241813205816">cd</strong> command to switch to <strong id="functiongraph_03_0846__b13790524105813">/opt/function/code</strong>.</li><li id="functiongraph_03_0846__li28411110133118">Access the full path (value of the <strong id="functiongraph_03_0846__b154018583239">RUNTIME_CODE_ROOT</strong> environment variable).<div class="note" id="functiongraph_03_0846__note168413106319"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="functiongraph_03_0846__p284141063120">You can obtain uploaded files by referring to the preceding methods when other languages are used.</p>
|
|
</div></div>
|
|
</li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_03_0110_00.html">General FAQs</a></div>
|
|
</div>
|
|
</div>
|
|
|