[banshee] PathPattern: rename variable from songpath to track_path
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] PathPattern: rename variable from songpath to track_path
- Date: Mon, 25 Feb 2013 17:30:24 +0000 (UTC)
commit ba331a5e56d45a46d61226c367e46efa5a520caf
Author: Andres G. Aragoneses <knocte gmail com>
Date: Mon Feb 25 17:30:12 2013 +0000
PathPattern: rename variable from songpath to track_path
This class is not coupled to Music contents (as it's indeed going to be
affected soon by changes to fix the path pattern for Video sources wrt
bgo#689123), so the name "songpath" was not a good name.
No change of behaviour in this commit.
src/Core/Banshee.Core/Banshee.Base/PathPattern.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Core/Banshee.Core/Banshee.Base/PathPattern.cs
b/src/Core/Banshee.Core/Banshee.Base/PathPattern.cs
index 1c61fe3..e6d89c6 100644
--- a/src/Core/Banshee.Core/Banshee.Base/PathPattern.cs
+++ b/src/Core/Banshee.Core/Banshee.Base/PathPattern.cs
@@ -167,16 +167,16 @@ namespace Banshee.Base
ext = String.Format (".{0}", ext);
}
- string songpath = CreateFromTrackInfo (track);
- songpath = Hyena.StringUtil.EscapePath (songpath);
+ string track_path = CreateFromTrackInfo (track);
+ track_path = Hyena.StringUtil.EscapePath (track_path);
string dir = Path.GetFullPath (Path.Combine (base_dir,
- Path.GetDirectoryName (songpath)));
+ Path.GetDirectoryName (track_path)));
if (!Banshee.IO.Directory.Exists (dir)) {
Banshee.IO.Directory.Create (dir);
}
- string filename = Path.GetFileName (songpath);
+ string filename = Path.GetFileName (track_path);
// Most filesystems have a filename length limit of 255 characters or bytes
// We use a limit of 200 characters as a compromise
if (filename.Length > 200) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]