summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres G. Aragoneses <knocte@gmail.com>2013-02-25 17:30:12 +0000
committerAndres G. Aragoneses <knocte@gmail.com>2013-02-25 17:30:12 +0000
commitba331a5e56d45a46d61226c367e46efa5a520caf (patch)
treec8c8160afe5229fbffc96db17a82176e4b3b8213
parent60dd317920ecba1780eabfd62baa5599c3256d96 (diff)
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.
-rw-r--r--src/Core/Banshee.Core/Banshee.Base/PathPattern.cs8
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 1c61fe38d..e6d89c6aa 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) {