Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

getting a nonexistent data object leaves an empty local file #681

Copy link
Copy link

Description

@trel
Issue body actions

If logical_path is not a valid logical path...

import os
from irods.session import iRODSSession
env_file = os.path.expanduser("~/.irods/irods_environment.json")
ssl_settings = {}
session = iRODSSession(irods_env_file=env_file, **ssl_settings)

logical_path = '/{0.zone}/home/{0.username}/does_not_exist.txt'.format(session)
local_file = 'should_not_exist.txt'
session.data_objects.get(logical_path, local_file)

This should not create and leave a new empty should_not_exist.txt.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.