Method: Wiris::FileSystem.rename

Defined in:
lib/src-generic/FileSystem.rb

.rename(path, newpath) ⇒ Object

Raises:

  • (Exception)


21
22
23
24
# File 'lib/src-generic/FileSystem.rb', line 21

def self.rename (path, newpath)
	File::rename(path, newpath)
	raise Exception, "Unable to rename \""+path+"\" to \""+newpath+"\"."
end