Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
shutil.copy questions
#4
Do you speak python? You need to call the function with the directory that you want as argument. For the current directory, you can normally pass '.' or Path.cwd()
source = str(last_modified('.'))
Reply


Messages In This Thread
shutil.copy questions - by kristianpython - Jul-14-2020, 07:51 AM
RE: shutil.copy questions - by Gribouillis - Jul-14-2020, 08:11 AM
RE: shutil.copy questions - by kristianpython - Jul-14-2020, 09:01 AM
RE: shutil.copy questions - by Gribouillis - Jul-14-2020, 09:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why is the copy method name in python list copy and not `__copy__`? YouHoGeon 2 337 Apr-04-2024, 01:18 AM
Last Post: YouHoGeon
  use of shutil.copytree with ENOTDIR exception yan 2 1,005 Nov-29-2023, 03:02 PM
Last Post: yan
  shutil.move make data corrupt kucingkembar 0 841 Feb-01-2023, 01:30 PM
Last Post: kucingkembar
  Merge htm files with shutil library (TypeError: 'module' object is not callable) Melcu54 5 1,713 Aug-28-2022, 07:11 AM
Last Post: Melcu54
  extra slashes in the network path for shutil.copy tester_V 3 3,856 Jun-02-2021, 07:57 AM
Last Post: supuflounder
  concatenat - shutil jmabrito 3 2,255 Feb-11-2021, 12:17 PM
Last Post: jmabrito
  Shutil FileNotFoundError: Errno 2 Help lord_kaiser 8 10,719 Aug-10-2020, 08:45 AM
Last Post: lord_kaiser
  Shutil move if file exists in destination Friend 2 6,886 Feb-02-2020, 01:45 PM
Last Post: Friend
  Shutil attempts to copy directories that don't exist ConsoleGeek 5 4,639 Oct-29-2019, 09:26 PM
Last Post: Gribouillis
  Help copying files with shutil hikerguy62 2 4,388 Aug-02-2019, 08:16 PM
Last Post: hikerguy62

Forum Jump:

User Panel Messages

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