Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Delete file with read-only permission, but write permission to parent folder
Post: RE: Delete file with read-only permission, but wri...

In case someone is interested in my solution for copying a file and overwriting it in case it is already available: import os import shutil import filecmp import stat def copyFile(sourceFile, destin...
cubei General Coding Help 4 21,551 Aug-28-2018, 09:40 AM
    Thread: Delete file with read-only permission, but write permission to parent folder
Post: RE: Delete file with read-only permission, but wri...

(Aug-27-2018, 03:24 PM)snippsat Wrote: cubei Wrote:Python 3.3.2You should update.This was a on corporate computer. Here on my private Notebook I can reproduce it with Python 3.6.3. (Aug-27-2018, 0...
cubei General Coding Help 4 21,551 Aug-27-2018, 06:30 PM
    Thread: Delete file with read-only permission, but write permission to parent folder
Post: Delete file with read-only permission, but write p...

My understanding is that, in order to delete a file, I need write permission to the parent folder (for Windows). I don't need write permission to the file itself. But os.remove gives me "[WinError 5]...
cubei General Coding Help 4 21,551 Aug-27-2018, 08:41 AM

User Panel Messages

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