Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Shuntil.copyfile help
Post: RE: Shuntil.copyfile help

Thank you, it worked! Is there a way of copying ALL the files, even duplicate names?
mcesmcsc General Coding Help 6 3,237 Dec-20-2019, 07:57 PM
    Thread: Shuntil.copyfile help
Post: RE: Shuntil.copyfile help

yeah I get this error: Traceback (most recent call last): File "CopySlides.py", line 14, in <module> shutil.copyfile(dst, file) File "C:\Users\mcesm\AppData\Local\Programs\Python\Python3...
mcesmcsc General Coding Help 6 3,237 Dec-20-2019, 05:57 PM
    Thread: Shuntil.copyfile help
Post: RE: Shuntil.copyfile help

I'm trying to copy the .txt and .md files from src to dst
mcesmcsc General Coding Help 6 3,237 Dec-20-2019, 05:43 PM
    Thread: Shuntil.copyfile help
Post: Shuntil.copyfile help

So when I run this, I get "TypeError: bad operand type for unary +: 'str'" import os import shutil src = os.path.expanduser('~/Downloads') print(src) os.getcwd() dst = os.getcwd print(dst) for root...
mcesmcsc General Coding Help 6 3,237 Dec-20-2019, 05:14 PM
    Thread: How do I copy files without case sensitive?
Post: Is there a way to find file names that is case ins...

Im trying to find a 'filename' and use case insensitive using fnmatch, glob or filename...ive seen re IGNORECASE but dont know how to use it properly (yet)
mcesmcsc General Coding Help 8 4,950 Dec-18-2019, 02:19 PM
    Thread: How do I copy files without case sensitive?
Post: RE: How do I copy files without case sensitive?

OK i've updated my code to get the users 'homepath' and joined it with the 'source' folder. set my 'destination' folder but stil cant copy the files from pathlib import Path import os import shutil d...
mcesmcsc General Coding Help 8 4,950 Dec-18-2019, 01:25 PM
    Thread: How do I copy files without case sensitive?
Post: RE: How do I copy files without case sensitive?

it's homework, so they are going to run it from their computer, so putting my path in there wouldn't work, would it? I thought using path = ('~/Downloads') would be a global(?) type path?
mcesmcsc General Coding Help 8 4,950 Dec-17-2019, 06:54 PM
    Thread: How do I copy files without case sensitive?
Post: RE: How do I copy files without case sensitive?

Thank you, I'll give it a try **biggrin** ok now its not copying any of the 'readme' files to the destination(? from pathlib import Path import os import shutil os.chdir(os.path.abspath(os.path.dirn...
mcesmcsc General Coding Help 8 4,950 Dec-17-2019, 04:23 PM
    Thread: How do I copy files without case sensitive?
Post: How do I copy files without case sensitive?

here is my code for copying files from my downloads folder. It only copies one and not all. I'd like it to copy all the readme files so when it looks for the files it's not case sensitive: from pathli...
mcesmcsc General Coding Help 8 4,950 Dec-17-2019, 03:08 PM
    Thread: Python create directories within directories
Post: RE: Python create directories within directories

awesome! thank you, i'll give a go!
mcesmcsc General Coding Help 2 2,225 Dec-17-2019, 12:32 PM
    Thread: Python create directories within directories
Post: Python create directories within directories

I need to create a directory, then create 24 more directories within the main directory, then add 3 more numbered directories within the 24. This is what I have so far: import os def main(): Direc...
mcesmcsc General Coding Help 2 2,225 Dec-17-2019, 12:23 AM
    Thread: Keeps looping even after correct answer
Post: RE: Keeps looping even after correct answer

Thank you for your help!
mcesmcsc General Coding Help 2 1,916 Dec-12-2019, 04:27 PM
    Thread: Keeps looping even after correct answer
Post: Keeps looping even after correct answer

I cant get this to stop looping even after correct answer. Any help would be greatly appreciated. # Administrator accounts list adminList = [ { "username": "DaBigBoss", "password":...
mcesmcsc General Coding Help 2 1,916 Dec-12-2019, 02:53 PM

User Panel Messages

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