Changeset f9a17cd in rtems-tools


Ignore:
Timestamp:
Nov 7, 2018, 7:41:09 AM (5 months ago)
Author:
Vijay Kumar Banerjee <vijaykumar9597@…>
Branches:
master
Children:
82254b0
Parents:
fb03e22
git-author:
Vijay Kumar Banerjee <vijaykumar9597@…> (11/07/18 07:41:09)
git-committer:
Chris Johns <chrisj@…> (11/17/18 01:31:45)
Message:

rtemstoolkit/path : Add support to copy single files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/path.py

    rfb03e22 rf9a17cd  
    192192    hdst = host(dst)
    193193
    194     if os.path.exists(src):
     194    if os.path.exists(src) and os.path.isdir(src):
    195195        names = os.listdir(src)
    196196    else:
    197         name = []
     197        names = [basename(src)]
     198        src = dirname(src)
    198199
    199200    if not os.path.isdir(dst):
Note: See TracChangeset for help on using the changeset viewer.