Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for deleteFile (0.22 sec)

  1. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

                            }
                        }
                    });
    
                    deleteFileMap.values().forEach(this::deleteFile);
                    count += deleteFileMap.size();
                }
            }
    
            protected void deleteFile(final Path path) {
                try {
                    Files.delete(path);
                    if (logger.isDebugEnabled()) {
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	}
    
    	return nil
    }
    
    // deleteFile deletes a file or a directory if its empty unless recursive
    // is set to true. If the target is successfully deleted, it will recursively
    // move up the tree, deleting empty parent directories until it finds one
    // with files in it. Returns nil for a non-empty directory even when
    // recursive is set to false.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 82.4K bytes
    - Viewed (0)
  3. tensorflow/c/env_test.cc

        TF_DeleteDir(dirpath.c_str(), s);
        ASSERT_NE(TF_OK, TF_GetCode(s))
            << "TF_DeleteDir unexpectedly succeeded with a non-empty directory "
            << dirpath;
    
        TF_DeleteFile(filepath.c_str(), s);
        ASSERT_TF_OK(s) << "TF_DeleteFile failed for " << filepath << ": "
                        << TF_Message(s);
    
        // Now deleting the directory should work.
        TF_DeleteDir(dirpath.c_str(), s);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  4. tensorflow/c/env.cc

      ::tensorflow::Set_TF_Status_from_Status(
          status, cc_file->Append(::tensorflow::StringPiece{data, length}));
    }
    
    void TF_DeleteFile(const char* filename, TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Set_TF_Status_from_Status(
          status, ::tensorflow::Env::Default()->DeleteFile(filename));
    }
    
    bool TF_StringStreamNext(TF_StringStream* list, const char** result) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      else if (mkdir(path, /*mode=*/0755) != 0)
        TF_SetStatusFromIOError(status, errno, path);
      else
        TF_SetStatus(status, TF_OK, "");
    }
    
    static void DeleteFile(const TF_Filesystem* filesystem, const char* path,
                           TF_Status* status) {
      if (unlink(path) != 0)
        TF_SetStatusFromIOError(status, errno, path);
      else
        TF_SetStatus(status, TF_OK, "");
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  6. cmd/ftp-server-driver.go

    		if err.Err != nil {
    			return err.Err
    		}
    	}
    
    	return nil
    }
    
    // DeleteFile implements ftpDriver
    func (driver *ftpDriver) DeleteFile(ctx *ftp.Context, objPath string) (err error) {
    	stopFn := globalFtpMetrics.log(ctx, objPath)
    	defer stopFn(err)
    
    	bucket, object := path2BucketObject(objPath)
    	if bucket == "" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::DeleteFile(const std::string& fname,
                                         TransactionToken* token) {
      if (ops_->delete_file == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", fname, " does not support DeleteFile()"));
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      EXPECT_EQ(std::vector<string>({"SubDir/", "TestFile.csv"}), childrens);
    }
    
    TEST_F(GCSFilesystemTest, DeleteFile) {
      tf_gcs_filesystem::Init(filesystem_, status_);
      ASSERT_TF_OK(status_);
      const std::string path = GetURIForPath("DeleteFile");
      WriteString(path, "test");
      ASSERT_TF_OK(status_);
      tf_gcs_filesystem::DeleteFile(filesystem_, path.c_str(), status_);
      EXPECT_TF_OK(status_);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

    // default implementation. Because we could create an empty object whose
    // key is equal to the `path` and Google Cloud Console will automatically
    // display it as a directory tree.
    
    void DeleteFile(const TF_Filesystem* filesystem, const char* path,
                    TF_Status* status) {
      std::string bucket, object;
      ParseGCSPath(path, false, &bucket, &object, status);
      if (TF_GetCode(status) != TF_OK) return;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.h

    void CreateDir(const TF_Filesystem* filesystem, const char* path,
                   TF_Status* status);
    int GetChildren(const TF_Filesystem* filesystem, const char* path,
                    char*** entries, TF_Status* status);
    void DeleteFile(const TF_Filesystem* filesystem, const char* path,
                    TF_Status* status);
    void Stat(const TF_Filesystem* filesystem, const char* path,
              TF_FileStatistics* stats, TF_Status* status);
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:37:41 GMT 2020
    - 5.2K bytes
    - Viewed (0)
Back to top