Loading src/Makefile.am +3 −3 Original line number Diff line number Diff line Loading @@ -168,8 +168,6 @@ liburd_aux_la_SOURCES = \ io/transferors/local-path-to-remote-resource.hpp \ io/transferors/remote-resource-to-local-path.cpp \ io/transferors/remote-resource-to-local-path.hpp \ io/transferors/tar-archive.cpp \ io/transferors/tar-archive.hpp \ io/transferors/memory-to-local-path.cpp \ io/transferors/memory-to-local-path.hpp \ io/transferors/memory-to-shared-path.cpp \ Loading @@ -190,7 +188,9 @@ liburd_aux_la_SOURCES = \ urd.cpp \ urd.hpp \ utils.cpp \ utils.hpp utils.hpp \ utils/tar-archive.cpp \ utils/tar-archive.hpp nodist_liburd_aux_la_SOURCES = \ config/defaults.cpp \ Loading src/io/transferors/local-path-to-remote-resource.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,6 @@ #include "backends/posix-fs.hpp" #include "hermes.hpp" #include "rpcs.hpp" #include "tar-archive.hpp" #include "local-path-to-remote-resource.hpp" Loading src/io/transferors/remote-resource-to-local-path.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ #include "io/task-stats.hpp" #include "hermes.hpp" #include "rpcs.hpp" #include "tar-archive.hpp" #include "remote-resource-to-local-path.hpp" namespace { Loading src/resources/local_posix_path/detail/local-path-impl.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ namespace bfs = boost::filesystem; #include "local-path-info.hpp" #include "local-path-impl.hpp" #include "backends/posix-fs.hpp" #include "utils.hpp" #include "logger.hpp" namespace norns { Loading Loading @@ -67,6 +68,15 @@ local_path_resource::is_collection() const { return m_is_collection; } std::size_t local_path_resource::packed_size() const { std::error_code ec; std::size_t sz = utils::tar::estimate_size_once_packed(m_canonical_path, ec); return ec ? 0 : sz; } const std::shared_ptr<const storage::backend> local_path_resource::parent() const { return std::static_pointer_cast<const storage::backend>(m_parent); Loading src/resources/local_posix_path/detail/local-path-impl.hpp +1 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ struct resource_impl<resource_type::local_posix_path> : public resource { std::string name() const override final; resource_type type() const override final; bool is_collection() const override final; std::size_t packed_size() const override final; const std::shared_ptr<const storage::backend> parent() const override final; std::string to_string() const override final; Loading Loading
src/Makefile.am +3 −3 Original line number Diff line number Diff line Loading @@ -168,8 +168,6 @@ liburd_aux_la_SOURCES = \ io/transferors/local-path-to-remote-resource.hpp \ io/transferors/remote-resource-to-local-path.cpp \ io/transferors/remote-resource-to-local-path.hpp \ io/transferors/tar-archive.cpp \ io/transferors/tar-archive.hpp \ io/transferors/memory-to-local-path.cpp \ io/transferors/memory-to-local-path.hpp \ io/transferors/memory-to-shared-path.cpp \ Loading @@ -190,7 +188,9 @@ liburd_aux_la_SOURCES = \ urd.cpp \ urd.hpp \ utils.cpp \ utils.hpp utils.hpp \ utils/tar-archive.cpp \ utils/tar-archive.hpp nodist_liburd_aux_la_SOURCES = \ config/defaults.cpp \ Loading
src/io/transferors/local-path-to-remote-resource.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,6 @@ #include "backends/posix-fs.hpp" #include "hermes.hpp" #include "rpcs.hpp" #include "tar-archive.hpp" #include "local-path-to-remote-resource.hpp" Loading
src/io/transferors/remote-resource-to-local-path.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ #include "io/task-stats.hpp" #include "hermes.hpp" #include "rpcs.hpp" #include "tar-archive.hpp" #include "remote-resource-to-local-path.hpp" namespace { Loading
src/resources/local_posix_path/detail/local-path-impl.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ namespace bfs = boost::filesystem; #include "local-path-info.hpp" #include "local-path-impl.hpp" #include "backends/posix-fs.hpp" #include "utils.hpp" #include "logger.hpp" namespace norns { Loading Loading @@ -67,6 +68,15 @@ local_path_resource::is_collection() const { return m_is_collection; } std::size_t local_path_resource::packed_size() const { std::error_code ec; std::size_t sz = utils::tar::estimate_size_once_packed(m_canonical_path, ec); return ec ? 0 : sz; } const std::shared_ptr<const storage::backend> local_path_resource::parent() const { return std::static_pointer_cast<const storage::backend>(m_parent); Loading
src/resources/local_posix_path/detail/local-path-impl.hpp +1 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ struct resource_impl<resource_type::local_posix_path> : public resource { std::string name() const override final; resource_type type() const override final; bool is_collection() const override final; std::size_t packed_size() const override final; const std::shared_ptr<const storage::backend> parent() const override final; std::string to_string() const override final; Loading