Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getFileSize (0.24 sec)

  1. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      uint64 size;
      status = env_->GetFileSize(filepath, &size);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
      if (!status.ok()) GTEST_SKIP() << "GetFileSize() not supported: " << status;
      EXPECT_EQ(size, test_data.size());
    
      status = env_->GetFileSize(new_filepath, &size);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 20:25:58 UTC 2022
    - 71K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.h

                                         const char* path,
                                         TF_ReadOnlyMemoryRegion* region,
                                         TF_Status* status);
    int64_t GetFileSize(const TF_Filesystem* filesystem, const char* path,
                        TF_Status* status);
    void PathExists(const TF_Filesystem* filesystem, const char* path,
                    TF_Status* status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 31 04:37:41 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      ops_->is_directory(filesystem_.get(), translated_name.c_str(),
                         plugin_status.get());
      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::GetFileSize(const std::string& fname,
                                          TransactionToken* token,
                                          uint64* file_size) {
      if (ops_->get_file_size == nullptr) {
        FileStatistics stat;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/modular_filesystem.h

      Status Stat(const std::string& fname, TransactionToken* token,
                  FileStatistics* stat) override;
      Status IsDirectory(const std::string& fname,
                         TransactionToken* token) override;
      Status GetFileSize(const std::string& fname, TransactionToken* token,
                         uint64* file_size) override;
      Status RenameFile(const std::string& src, const std::string& target,
                        TransactionToken* token) override;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 08:49:52 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            }
    
            @Override
            public String getContentType() {
                return fileItem.getContentType();
            }
    
            @Override
            public int getFileSize() {
                return (int) fileItem.getSize();
            }
    
            @Override
            public String getFileName() {
                return getBaseFileName(fileItem.getName());
            }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

                final MinioClient minioClient = createClient(fessConfig);
                final PutObjectArgs args = PutObjectArgs.builder().bucket(fessConfig.getStorageBucket()).object(objectName)
                        .stream(in, uploadFile.getFileSize(), -1).contentType("application/octet-stream").build();
                minioClient.putObject(args);
            } catch (final Exception e) {
                throw new StorageException("Failed to upload " + objectName, e);
            }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

                                               reader.get(), status_);
        if (TF_GetCode(status_) != TF_OK) return "";
    
        auto file_size =
            tf_gcs_filesystem::GetFileSize(filesystem_, path.c_str(), status_);
        if (TF_GetCode(status_) != TF_OK) return "";
    
        std::string content;
        content.resize(file_size);
        auto read = tf_random_access_file::Read(reader.get(), 0, file_size,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 31 12:04:23 UTC 2020
    - 24.9K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

                                  .time_since_epoch()
                                  .count();
        }
        TF_SetStatusFromGCSStatus(metadata.status(), status);
      }
    }
    
    int64_t GetFileSize(const TF_Filesystem* filesystem, const char* path,
                        TF_Status* status) {
      // Only validate the name.
      std::string bucket, object;
      ParseGCSPath(path, false, &bucket, &object, status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 23 06:55:53 UTC 2023
    - 46.9K bytes
    - Viewed (0)
Back to top