remove leading dots from filename
This commit is contained in:
parent
bc3239507a
commit
a1d6be8167
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/local/bin/ruby -w
|
||||
|
||||
# $Dwarf: ripnews.rb,v 1.36 2002/08/28 11:54:55 ward Exp $
|
||||
# $Dwarf: ripnews.rb,v 1.37 2002/11/05 09:33:41 ward Exp $
|
||||
# $Source$
|
||||
|
||||
require 'date'
|
||||
|
|
@ -20,6 +20,7 @@ def save_file(dir, name, data)
|
|||
print "nname: #{nname}\n" if Debuglevel > 1
|
||||
nname.sub!(/\s*$/, "")
|
||||
nname.sub!(/^\s*/, "")
|
||||
nname.sub!(/^\.*/, "")
|
||||
newname = nname
|
||||
count = 1
|
||||
d = Date.today
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue