From 4083209be0ca53447bf95586133b430d4d98494f Mon Sep 17 00:00:00 2001 From: xzg Date: Mon, 4 Dec 2017 22:30:11 +0800 Subject: [PATCH] Adjuest format --- pydu/file.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pydu/file.py b/pydu/file.py index 1cd2ff9..c118131 100644 --- a/pydu/file.py +++ b/pydu/file.py @@ -82,7 +82,8 @@ def open_file(path, mode='wb+', buffer_size=-1, ignore_errors=False): def copy(src, dst, ignore_errors=False, follow_symlinks=True): - """Copy data and mode bits ("cp src dst"). + """ + Copy data and mode bits ("cp src dst"). Both the source and destination may be a directory. @@ -121,7 +122,8 @@ def touch(path): if not WINDOWS: def symlink(src, dst, overwrite=False, ignore_errors=False): - """Create a symbolic link pointing to source named link_name. + """ + Create a symbolic link pointing to source named link_name. If dist is exist and overwrite is true,a new symlink will be created @@ -141,7 +143,8 @@ if not WINDOWS: if not WINDOWS: def link(src, dst, overwrite=False, ignore_errors=False): - """Create a hard link pointing to source named link_name. + """ + Create a hard link pointing to source named link_name. If dist is exist and overwrite is true,a new symlink will be created