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>
1.6 KiB
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:
- Run the cd command to switch to /opt/function/code.
- Access the full path (value of the RUNTIME_CODE_ROOT environment variable).
Parent topic: General FAQs