doc-exports/docs/fg/umn/functiongraph_03_0846.html
Chen, Junjie dac566cf2f FG UMN 20230725 version
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>
2024-04-03 10:30:56 +00:00

1.6 KiB

How Do I Obtain Uploaded Files?

Take Python as an example. If you use os.getcwd() to query the current directory, the directory will be /opt/function. However, code has actually been uploaded to /opt/function/code.

You can use either of the following methods to obtain uploaded files:

  1. Run the cd command to switch to /opt/function/code.
  2. Access the full path (value of the RUNTIME_CODE_ROOT environment variable).

    You can obtain uploaded files by referring to the preceding methods when other languages are used.