BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1944
FormatDosFiles.py Intel\ServerSiliconPkg --exclude Library\SimRegisters\
Its parameter "Library\SimRegisters\" ends with '\'
but I can't seem to get it to exclude the SimRegisters directory
This patch is going to fix this issue
Cc: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
FileNames[:] = [f for f in FileNames if f not in Args.Exclude]\r
Continue = False\r
for Path in Args.Exclude:\r
+ Path = Path.strip('\\').strip('/')\r
if not os.path.isdir(Path) and not os.path.isfile(Path):\r
Path = os.path.join(ExcludeDir, Path)\r
if os.path.isdir(Path) and Path.endswith(DirPath):\r