Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Recursively create a file
Post: RE: Recursively create a file

Well I'm not a programmer I'm just trying to have a file created at the same time with the folder that's it. I'm not really able and have the mindset to keep up with any programmer **biggrin**
digitalquake General Coding Help 19 14,751 Dec-07-2016, 11:22 AM
    Thread: Recursively create a file
Post: RE: Recursively create a file

I see will start from scratch that's the best way. Thank you
digitalquake General Coding Help 19 14,751 Nov-28-2016, 09:27 AM
    Thread: Recursively create a file
Post: RE: Recursively create a file

(Nov-25-2016, 02:52 PM)Ofnuts Wrote: Everthought about using functions? def createdir(d):    original_umask_p = os.umask(0)    os.makedirs(d, mode=0777)    os.umask(original_umask_p)But you can ...
digitalquake General Coding Help 19 14,751 Nov-25-2016, 03:46 PM
    Thread: Recursively create a file
Post: RE: Recursively create a file

Ok, now that my grammar nazi attitude towards python is fixed, I'm still not getting any output file in the folders. I don't get any debug error but simply nothing happens. I tried different ways, sp...
digitalquake General Coding Help 19 14,751 Nov-25-2016, 10:43 AM
    Thread: Recursively create a file
Post: RE: Recursively create a file

Apologise, but with Quote:#       DATALAB BRANCH                 a       = os.path.join(project_path, '001_DATALAB')                  open('001_DATALAB/test.txt', 'w').close() I get Error: File...
digitalquake General Coding Help 19 14,751 Nov-14-2016, 03:44 PM
    Thread: Recursively create a file
Post: RE: Recursively create a file

(Nov-03-2016, 10:26 PM)Ofnuts Wrote: (Nov-03-2016, 04:29 PM)digitalquake Wrote: Our setup use netatalk and smb share so people have access only to limited folders, and 0777 is handy for them so th...
digitalquake General Coding Help 19 14,751 Nov-09-2016, 06:35 PM
    Thread: Recursively create a file
Post: RE: Recursively create a file

Our setup use netatalk and smb share so people have access only to limited folders, and 0777 is handy for them so they can read and write into the folders but not messup with other projects. Maybe a s...
digitalquake General Coding Help 19 14,751 Nov-03-2016, 04:29 PM
    Thread: Recursively create a file
Post: RE: Recursively create a file

Thanks for the hints :) I think the umask is there because this script write to an active folder shared over network and the scripts has to be run under root or an admin that can write folders with 7...
digitalquake General Coding Help 19 14,751 Nov-03-2016, 10:02 AM
    Thread: Recursively create a file
Post: RE: Recursively create a file

I'll look into it, thank you. So I can use list for variables (all the leters) for assiging the correct folder and use a loop to check if the correct folder exist? Can I do a reiteration for have thi...
digitalquake General Coding Help 19 14,751 Nov-02-2016, 06:16 PM
    Thread: Recursively create a file
Post: Recursively create a file

Hello all I'm new to the world of python. (please don't bully the scriptkiddo  **biggrin**  ) I've wrote script that create folders in a specific location on a RAID,  updated every night to the cl...
digitalquake General Coding Help 19 14,751 Nov-02-2016, 12:00 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020