Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
temporary file names
#3
the idea i have is that the file is written, but to the alternate name. then when a .close() is done, the alternate file is closed, then it is renamed to the original name, replacing it. this is created by specifying a name to write to. if that name does not exist, it is opened in a normal way. but if it does exist, this code determines an alternate file name that can be renamed to the original an stay in the same filesystem. it's how editors typically save files.

there would be an option to abandon the file instead of close it. another method would get a copy of the alternate name.

i need better terminology for this.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
temporary file names - by Skaperen - Dec-31-2018, 07:09 PM
RE: temporary file names - by Gribouillis - Dec-31-2018, 11:02 PM
RE: temporary file names - by Skaperen - Dec-31-2018, 11:57 PM
RE: temporary file names - by Gribouillis - Jan-01-2019, 10:00 AM
RE: temporary file names - by Skaperen - Jan-01-2019, 08:44 PM
RE: temporary file names - by Gribouillis - Jan-02-2019, 09:14 AM
RE: temporary file names - by Skaperen - Jan-02-2019, 07:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  rename same file names in different directories elnk 0 766 Nov-04-2022, 05:23 PM
Last Post: elnk
  Saving Excel workbook file with dataframe names Biplab1985 0 2,085 Jun-07-2020, 12:25 PM
Last Post: Biplab1985
  Details of attachment files in a msg file such as file names save into a python list klllmmm 2 5,811 Nov-12-2019, 05:59 AM
Last Post: klllmmm
  splitstring file names a by hyphen steve22020 3 3,358 Oct-30-2019, 05:39 PM
Last Post: steve22020
  Is there a more effecient way to do this ? File Names sumncguy 2 2,150 Jul-11-2019, 12:47 PM
Last Post: DeaD_EyE
  How to combine file names into a list from multiple directories? python_newbie09 3 5,333 Jul-09-2019, 07:38 PM
Last Post: python_newbie09
  write each line of a text file into separate text files and save with different names Shameendra 3 2,878 Feb-20-2019, 09:07 AM
Last Post: buran
  Reading file names CertifiedPengu 1 2,315 Jan-07-2019, 06:54 PM
Last Post: Gribouillis
  how to increment all file names in a folder SoulsKeeper 5 6,158 Sep-10-2018, 07:59 PM
Last Post: Skaperen
  dealing with spaces in file names AceScottie 5 75,901 Jun-02-2018, 01:06 PM
Last Post: AceScottie

Forum Jump:

User Panel Messages

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