summaryrefslogtreecommitdiff
blob: ceada099cfe3c53114f9f73a4e8409afccfa67b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Index: sdformat-9.10.0/tools/xmlschema.rb
===================================================================
--- sdformat-9.10.0.orig/tools/xmlschema.rb
+++ sdformat-9.10.0/tools/xmlschema.rb
@@ -265,7 +265,7 @@ opt_parser.parse!
 if infile.nil?
   puts "Missing option -i."
   exit
-elsif !File.exists?(infile)
+elsif !File.exist?(infile)
   puts "Input file[#{infile}] does not exist\n"
   exit
 end
@@ -273,7 +273,7 @@ end
 if $path.nil?
   puts "Missing option -s."
   exit
-elsif !Dir.exists?($path)
+elsif !Dir.exist?($path)
   puts "SDF source dir[#{$path}] does not exist\n"
   exit
 end
@@ -281,7 +281,7 @@ end
 if outdir.nil?
   puts "Missing output directory, option -o."
   exit
-elsif !Dir.exists?(outdir)
+elsif !Dir.exist?(outdir)
   Dir.mkdir(outdir)
 end