[gnome-subtitles] Allow to get the filename without extension



commit 1270da1e3be2c6c83fc1398848c11bdb68c91cf9
Author: Pedro Castro <mail pedrocastro org>
Date:   Sun Dec 19 16:39:59 2010 +0000

    Allow to get the filename without extension

 src/SubLib/Core/Domain/FileProperties.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/SubLib/Core/Domain/FileProperties.cs b/src/SubLib/Core/Domain/FileProperties.cs
index ff57757..9113bc8 100644
--- a/src/SubLib/Core/Domain/FileProperties.cs
+++ b/src/SubLib/Core/Domain/FileProperties.cs
@@ -90,6 +90,12 @@ public class FileProperties : ICloneable {
 		get { return System.IO.Path.GetFileName(path); }
 	}
 	
+	/// <summary>The file's filename without its extension.</summary>
+	/// <remarks>See <see cref="System.IO.Path.GetFileNameWithoutExtension" /> for more information.</remarks>
+	public string FilenameWithoutExtension {
+		get { return System.IO.Path.GetFileNameWithoutExtension(path); }
+	}
+	
 	/// <summary>The file's directory.</summary>
 	/// <remarks>See <see cref="System.IO.Path.GetDirectoryName" /> for more information.</remarks>
 	public string Directory {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]