23 #include <util/constants.h>
24 #include <ktorrent_export.h>
42 KTORRENT_EXPORT
void MakeDir(
const QString & dir,
bool nothrow =
false);
50 KTORRENT_EXPORT
void MakePath(
const QString & dir,
bool nothrow =
false);
58 KTORRENT_EXPORT
void MakeFilePath(
const QString & file,
bool nothrow =
false);
66 KTORRENT_EXPORT
void SymLink(
const QString & link_to,
const QString & link_url,
bool nothrow =
false);
75 KTORRENT_EXPORT
void Move(
const QString & src,
const QString & dst,
bool nothrow =
false,
bool silent =
false);
83 KTORRENT_EXPORT
void CopyFile(
const QString & src,
const QString & dst,
bool nothrow =
false);
91 KTORRENT_EXPORT
void CopyDir(
const QString & src,
const QString & dst,
bool nothrow =
false);
98 KTORRENT_EXPORT
bool Exists(
const QString & url);
105 KTORRENT_EXPORT
void Delete(
const QString & url,
bool nothrow =
false);
113 KTORRENT_EXPORT
void Touch(
const QString & url,
bool nothrow =
false);
121 KTORRENT_EXPORT Uint64 FileSize(
const QString & url);
129 KTORRENT_EXPORT Uint64 FileSize(
int fd);
138 KTORRENT_EXPORT
void TruncateFile(
int fd,Uint64 size,
bool quick);
146 KTORRENT_EXPORT
void TruncateFile(
const QString & path,Uint64 size);
148 #ifdef HAVE_XFS_XFS_H
152 KTORRENT_EXPORT
bool XfsPreallocate(
int fd,Uint64 size);
157 KTORRENT_EXPORT
bool XfsPreallocate(
const QString & path,Uint64 size);
168 KTORRENT_EXPORT
void SeekFile(
int fd,Int64 off,
int whence);
171 KTORRENT_EXPORT
bool FreeDiskSpace(
const QString & path,Uint64 & bytes_free);
174 KTORRENT_EXPORT
bool FileNameToLong(
const QString & path);
182 KTORRENT_EXPORT QString ShortenFileName(
const QString & path,
int extra_number = -1);
185 KTORRENT_EXPORT Uint64 DiskUsage(
const QString & filename);
188 KTORRENT_EXPORT Uint64 DiskUsage(
int fd);
191 KTORRENT_EXPORT QString MountPoint(
const QString & path);
194 KTORRENT_EXPORT
bool IsMounted(
const QString & mount_point);
197 KTORRENT_EXPORT QByteArray LoadFile(
const QString & path);