Changeset 2852cac in rtems-tools


Ignore:
Timestamp:
Jan 24, 2020, 9:57:15 AM (8 months ago)
Author:
Vijay Kumar Banerjee <vijaykumar9597@…>
Branches:
5, master
Children:
18d3daa
Parents:
29ad0ec7
git-author:
Vijay Kumar Banerjee <vijaykumar9597@…> (01/24/20 09:57:15)
git-committer:
Chris Johns <chrisj@…> (01/27/20 21:36:35)
Message:

rtemstoolkit/path: Add support to copy single file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/path.py

    r29ad0ec7 r2852cac  
    315315    hdst = host(dst)
    316316
    317     if exists(src):
    318         names = listdir(src)
     317    if exists(hsrc):
     318        if isdir(hsrc):
     319            names = listdir(hsrc)
     320        else:
     321            names = [basename(hsrc)]
     322            hsrc = dirname(hsrc)
    319323    else:
    320324        names = []
Note: See TracChangeset for help on using the changeset viewer.