[issue33194] Path-file objects does not have method to delete itself if its a file

2018-10-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I have added unlink along with other similar methods in Pathlib as part of issue34825 to the reference table which I hope helps. I propose closing this. Thanks -- ___ Python tracker

[issue33194] Path-file objects does not have method to delete itself if its a file

2018-09-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Maybe this can be added to list at the end (https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module) for more visibility. There was a similar thread in python-ideas to add more functions :

[issue33194] Path-file objects does not have method to delete itself if its a file

2018-09-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33194] Path-file objects does not have method to delete itself if its a file

2018-04-01 Thread Marco Rougeth
Marco Rougeth added the comment: Wow, I never saw unlink term related to removing files (obviously I'm not an old-school Unix greybeard). @nsj could you point me the thread you talked about? or help me find it? I looked in the archive in the last three months and couldn't

[issue33194] Path-file objects does not have method to delete itself if its a file

2018-03-31 Thread Nathaniel Smith
Nathaniel Smith added the comment: You're looking for 'Path.unlink'. Agreed though that the name makes it hard to find. (I guess it makes sense to old-school Unix greybeards, but Python does generally try to be useful for more people than just them...) There was some

[issue33194] Path-file objects does not have method to delete itself if its a file

2018-03-31 Thread Marco Rougeth
New submission from Marco Rougeth : Path has the method `.rmdir()` for removing the directory, but it doesn't have anything if it correspond to a file. The `os.remove` could be used here, but I think it should have a more appropriate/explicit name like `.rmfile()`. If it