Limit file names to 255 bytes to avoid issues on Linux FS

This commit is contained in:
Christophe Dumez
2011-03-21 19:01:36 +00:00
parent 784d972602
commit 85d6365bc2
3 changed files with 61 additions and 37 deletions

View File

@@ -129,6 +129,7 @@ public:
static QString truncateRootFolder(boost::intrusive_ptr<libtorrent::torrent_info> t);
static QString truncateRootFolder(libtorrent::torrent_handle h);
static QString fixFileNames(QString path);
static QString updateLabelInSavePath(QString defaultSavePath, QString save_path, const QString &old_label, const QString &new_label);