Thank you Clemens

On Wednesday, March 30, 2022 at 9:25:13 AM UTC+2 Clemens wrote:

> A few years ago I had to create a directory by web2py. I did it as follows:
> from subprocess import Popen
> ...
> create_dir = Popen(['mkdir', '%s%s' %(destination, build_date.strftime(
> '%Y-%m-%d-%H%M%S'))], stderr=PIPE)
>
> Thus, if the directory is not available you can create it. I guess the 
> return value of Popen will tell you.
>
> Maybe it helps.
>
> Regards
> Clemens
>
> On Tuesday, March 29, 2022 at 8:00:20 AM UTC+2 mostwanted wrote:
>
>> Guys my app suddenly wont save PDF documents.
>>
>>
>> *db.define_table('pdfs',                
>> Field('fileS','upload',uploadfolder=request.folder+'static/pdfs')).*
>>
>>  The above code does not create static/pdfs folder as expected so when i 
>> click on the link thats supposed allow me to view the pdf  *{{=A('Click 
>> to view', _href=URL('default', 'viewer'))}} *it get an error *404 NOT 
>> FOUND *!!!!
>>
>> Am i missing something or is there a workaround this issue?
>>
>> regards
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/aa9e67a7-d2cb-4a81-b8af-15eeaad1cf49n%40googlegroups.com.

Reply via email to