[PATCH 2/2] rtemstoolkit/path : Add support to copy single files

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Thu Nov 15 11:21:36 UTC 2018


On Thu, 15 Nov 2018 at 05:18, Chris Johns <chrisj at rtems.org> wrote:

> On 15/11/2018 05:49, Vijay Kumar Banerjee wrote:
> > On Wed, 7 Nov 2018 at 13:11, Vijay Kumar Banerjee <
> vijaykumar9597 at gmail.com
> > <mailto:vijaykumar9597 at gmail.com>> wrote:
> >
> >     ---
> >      rtemstoolkit/path.py | 5 +++--
> >      1 file changed, 3 insertions(+), 2 deletions(-)
> >
> >     diff --git a/rtemstoolkit/path.py b/rtemstoolkit/path.py
> >     index 760f4bd..83fb361 100644
> >     --- a/rtemstoolkit/path.py
> >     +++ b/rtemstoolkit/path.py
> >     @@ -191,10 +191,11 @@ def copy_tree(src, dst):
> >          hsrc = host(src)
> >          hdst = host(dst)
> >
> >     -    if os.path.exists(src):
> >     +    if os.path.exists(src) and os.path.isdir(src):
> >              names = os.listdir(src)
> >          else:
> >     -        name = []
> >     +        names = [basename(src)]
> >     +        src = dirname(src)
> >
> >          if not os.path.isdir(dst):
> >              os.makedirs(dst)
> >     --
> >     2.17.2
> >
> > ping :)
>
> OK to push.
>
> Thanks for the review!
Please push the two patches. :)

> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20181115/ecb02bc9/attachment-0002.html>


More information about the devel mailing list