Home
last modified time | relevance | path

Searched refs:trashDir (Results 1 – 25 of 48) sorted by relevance

12

/dports/audio/kid3-kf5/kid3-3.8.6/src/core/utils/
H A Dcoreplatformtools.cpp208 QString filesPath(trashDir + QLatin1String("/files")); in moveToTrashDir()
209 QString infoPath(trashDir + QLatin1String("/info")); in moveToTrashDir()
267 trashDir = volumeRoot + QLatin1String("/.Trash"); in findExtVolumeTrash()
269 if (QDir(trashDir).exists() && in findExtVolumeTrash()
272 trashDir += QString(QLatin1String("/%1")).arg(uid); in findExtVolumeTrash()
274 trashDir += QString(QLatin1String("-%1")).arg(uid); in findExtVolumeTrash()
276 return QDir(trashDir).exists() || QDir().mkpath(trashDir); in findExtVolumeTrash()
303 QString trashDir; in moveFileToTrash() local
308 trashDir = topDir + QLatin1String("/Trash"); in moveFileToTrash()
310 findExtVolumeTrash(topDir, trashDir))) { in moveFileToTrash()
[all …]
/dports/audio/kid3-qt5/kid3-3.8.6/src/core/utils/
H A Dcoreplatformtools.cpp208 QString filesPath(trashDir + QLatin1String("/files")); in moveToTrashDir()
209 QString infoPath(trashDir + QLatin1String("/info")); in moveToTrashDir()
267 trashDir = volumeRoot + QLatin1String("/.Trash"); in findExtVolumeTrash()
269 if (QDir(trashDir).exists() && in findExtVolumeTrash()
272 trashDir += QString(QLatin1String("/%1")).arg(uid); in findExtVolumeTrash()
274 trashDir += QString(QLatin1String("-%1")).arg(uid); in findExtVolumeTrash()
276 return QDir(trashDir).exists() || QDir().mkpath(trashDir); in findExtVolumeTrash()
303 QString trashDir; in moveFileToTrash() local
308 trashDir = topDir + QLatin1String("/Trash"); in moveFileToTrash()
310 findExtVolumeTrash(topDir, trashDir))) { in moveFileToTrash()
[all …]
/dports/sysutils/qdirstat/qdirstat-1.8/src/
H A DTrash.cpp103 TrashDir * Trash::trashDir( const QString & path ) in trashDir() function in Trash
157 TrashDir * trashDir = new TrashDir( trashPath, dev ); in trashDir() local
158 CHECK_NEW( trashDir ); in trashDir()
159 _trashDirs[ dev ] = trashDir; in trashDir()
161 return trashDir; in trashDir()
178 TrashDir * trashDir = instance()->trashDir( path ); in trash() local
180 if ( ! trashDir ) in trash()
183 QString targetName = trashDir->uniqueName( path ); in trash()
184 trashDir->createTrashInfo( path, targetName ); in trash()
185 trashDir->move( path, targetName ); in trash()
/dports/devel/kf5-kio/kio-5.89.0/src/ioslaves/trash/
H A Dtrashimpl.cpp133 if (const int err = testDir(trashDir)) { in createTrashInfrastructure()
134 error(err, trashDir); in createTrashInfrastructure()
180 if (!QFileInfo(trashDir).isDir()) { in init()
187 m_trashDirectories.insert(0, trashDir); in init()
986 if (trashDir.isEmpty()) {
1059 if (!trashDir.isEmpty()) {
1132 return trashDir;
1136 return trashDir;
1156 return trashDir;
1164 return trashDir;
[all …]
H A Dtrashimpl.h168 int idForTrashDirectory(const QString &trashDir) const;
189 void insertTrashDir(int id, const QString &trashDir, const QString &topdir) const;
/dports/net/rclone/rclone-1.57.0/backend/drive/
H A Ddrive_internal_test.go380 file1 := fstest.NewItem("trashDir/toBeTrashed", contents, time.Now())
382 file2 := fstest.NewItem("trashDir/subdir/toBeTrashed", contents, time.Now())
387 fstest.CheckListingWithRoot(t, f, "trashDir", []fstest.Item{
391 "trashDir/subdir",
401 require.NoError(t, f.Purge(ctx, "trashDir/subdir"))
404 fstest.CheckListingWithRoot(t, f, "trashDir", []fstest.Item{}, []string{}, f.Precision())
407 r, err := f.unTrashDir(ctx, "trashDir", true)
415 require.NoError(t, f.Purge(ctx, "trashDir"))
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/
H A DTestTrash.java65 Path trashDir, Path fileName) throws IOException { in countSameDeletedFiles() argument
68 System.out.println("Counting " + fileName + " in " + trashDir.toString()); in countSameDeletedFiles()
78 FileStatus [] fss = fs.listStatus(trashDir, pf); in countSameDeletedFiles()
402 Path trashDir = Path.mergePaths(new Path(trashRoot.toUri().getPath()), in trashShell() local
407 "; trashDir=" + trashDir.toUri().getPath()); in trashShell()
409 int count = countSameDeletedFiles(fs, trashDir, myFile); in trashShell()
561 Path trashDir = shell.getCurrentTrashDir(); in testTrashEmptier() local
562 FileStatus files[] = fs.listStatus(trashDir.getParent()); in testTrashEmptier()
586 File trashDir = new File(TEST_DIR.toUri().getPath()); in tearDown() local
587 if (trashDir.exists() && !FileUtil.fullyDelete(trashDir)) { in tearDown()
[all …]
/dports/graphics/digikam/digikam-7.4.0/core/libs/dtrash/
H A Ddtrash.cpp174 QDir trashDir(trashFolder); in prepareCollectionTrash() local
176 if (!trashDir.exists()) in prepareCollectionTrash()
180 isCreated &= trashDir.mkpath(trashFolder); in prepareCollectionTrash()
181 isCreated &= trashDir.mkpath(trashFolder + QLatin1Char('/') + FILES_FOLDER); in prepareCollectionTrash()
182 isCreated &= trashDir.mkpath(trashFolder + QLatin1Char('/') + INFO_FOLDER); in prepareCollectionTrash()
/dports/deskutils/libcprime/libcprime-a5d026eb116d714d1d5312210f914d0a0d4adb2d/cprime/
H A Dfilefunc.cpp359 QString trashDir = CPrime::Variables::CC_Home_TrashDir(); in setupFolder() local
363 QDir::home().mkpath( trashDir ); in setupFolder()
364 QDir::home().mkpath( trashDir + "files/" ); in setupFolder()
365 QDir::home().mkpath( trashDir + "info/" ); in setupFolder()
366 … QFile::setPermissions( trashDir, QFile::ReadOwner | QFile::WriteOwner | QFile::ExeOwner ); in setupFolder()
371 qDebug() << "whats this " << trashDir; in setupFolder()
/dports/sysutils/backuppc/BackupPC-3.3.2/lib/BackupPC/
H A DLib.pm640 my($bpc, $trashDir, $file) = @_;
644 if ( !-d $trashDir ) {
645 eval { mkpath($trashDir, 0, 0777) };
650 print(STDERR "RmTreeDefer: can't create directory $trashDir");
654 $f = sprintf("%s/%d_%d_%d", $trashDir, time, $$, $i);
676 my($bpc, $trashDir) = @_;
681 return if ( !-d $trashDir );
682 my $d = $bpc->dirReadNames($trashDir) or carp "Can't read $trashDir: $!";
685 $bpc->RmTreeQuiet($trashDir, \@files);
/dports/graphics/phototonic/phototonic-2.1/
H A DTrashcan.cpp41 static Trash::Result moveToTrashDir(const QString& filePath, const QDir& trashDir, QString& error, … in moveToTrashDir() argument
43 const QDir trashInfoDir = QDir(trashDir.filePath("info")); in moveToTrashDir()
44 const QDir trashFilesDir = QDir(trashDir.filePath("files")); in moveToTrashDir()
/dports/sysutils/nix/nix-2.3.10/src/libstore/
H A Dgc.cc558 Path tmp = trashDir + "/" + baseNameOf(path); in deletePathRecursive()
634 if (realPath == linksDir || realPath == trashDir) return; in tryToDelete()
766 if (pathExists(trashDir)) deleteGarbage(state, trashDir); in collectGarbage()
768 createDirs(trashDir); in collectGarbage()
853 printInfo(format("deleting '%1%'") % trashDir); in collectGarbage()
854 deleteGarbage(state, trashDir); in collectGarbage()
/dports/databases/qt5-sqldrivers-sqlite3/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/databases/qt5-sqldrivers-sqlite2/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/databases/qt5-sqldrivers-tds/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/databases/qt5-sqldrivers-mysql/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/databases/qt5-sqldrivers-odbc/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/databases/qt5-sqldrivers-ibase/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/databases/qt5-sql/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/databases/qt5-sqldrivers-pgsql/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/net/qt5-network/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/textproc/qt5-xml/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/x11-toolkits/qt5-gui/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/devel/qt5-qmake/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]
/dports/devel/qt5-testlib/kde-qtbase-5.15.2p263/src/corelib/io/
H A Dqfilesystemengine_unix.cpp1214 auto makeTrashDir = [](const QDir &topDir, const QString &trashDir) -> QString { in freeDesktopTrashLocation() argument
1218 QString targetDir = topDir.filePath(trashDir); in freeDesktopTrashLocation()
1220 if (topDir.mkdir(trashDir)) in freeDesktopTrashLocation()
1331 QDir trashDir(freeDesktopTrashLocation(sourcePath)); in moveFileToTrash()
1332 if (!trashDir.exists()) in moveFileToTrash()
1339 trashDir.mkdir(filesDir); in moveFileToTrash()
1341 trashDir.mkdir(infoDir); in moveFileToTrash()
1344 if (!trashDir.exists(filesDir) || !trashDir.exists(infoDir)) { in moveFileToTrash()
1369 while (QFile::exists(trashDir.filePath(filesDir) + uniqueTrashedName)) in moveFileToTrash()
1383 infoFileName = trashDir.filePath(infoDir) in moveFileToTrash()
[all …]

12