pitrou commented on code in PR #13564:
URL: https://github.com/apache/arrow/pull/13564#discussion_r924326860
##########
python/pyarrow/_fs.pyx:
##########
@@ -556,6 +790,21 @@ cdef class FileSystem(_Weakrefable):
----------
path : str
The path of the file to be deleted.
+
+ Examples
+ --------
+ Create a file to delete:
+
+ >>> local.create_dir('/tmp/')
+ >>> local.copy_file(path,'/tmp/delete_example.dat')
+ >>> local.get_file_info('/tmp/delete_example.dat')
+ <FileInfo for '/tmp/delete_example.dat': type=FileType.File, size=4>
+
+ Delete a file:
Review Comment:
Same here. The method descriptions says "Delete a file" and the example
shows a file being deleted: is there an added value in the example? :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]