linux - accessing *nix file system through django -


i have django project installed in /home/user/project. , have strokes in code, processing files in file system. if make new directory os.makedirs('crowdin_temp') created within django project folder. if make os.system commands file system (like os.system("rm crowdin_temp/" + file_name)) file within project directory visible. makes me feel django project folder visible. possible process files outside of project folder? (e.g. in /home/user/ directory)

why don't specify full path?

$ ./manage.py shell >>> import os >>> os.makedirs('/tmp/temp') >>> os.system('touch /tmp/temp/somefile') 0 >>> os.system('rm /tmp/temp/somefile') 0 

Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -