Commit 76c9ab56 authored by Jerome Hugues's avatar Jerome Hugues
Browse files

* Adjust for "." and ".."

    For openaadl/ocarina#264
parent ee7273db
......@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
-- Copyright (C) 2005-2009 Telecom ParisTech, 2010-2019 ESA & ISAE. --
-- Copyright (C) 2005-2009 Telecom ParisTech, 2010-2020 ESA & ISAE. --
-- --
-- Ocarina is free software; you can redistribute it and/or modify under --
-- terms of the GNU General Public License as published by the Free Soft- --
......@@ -241,7 +241,10 @@ package body Ocarina.Backends.Utils is
& Simple_Name (Simple_Name (Directory_Entry)));
when Directory =>
if Simple_Name (Simple_Name (Directory_Entry)) /= "" then
if Simple_Name (Simple_Name (Directory_Entry)) /= "" and then
Simple_Name (Simple_Name (Directory_Entry)) /= ".." and then
Simple_Name (Simple_Name (Directory_Entry)) /= "."
then
Copy_Directory
(Full_Name (Directory_Entry),
Compose (Dest, Simple_Name (Directory_Entry)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment