ansys / ansys/pymapdl

Wrap `mapdl.directory` to check for files

Open
#4,100 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
514
Forks
148
Avg merge
3d 2h
Merged PRs (30d)
46

Description

So it will be awesome that we could do:

```py
if (mapdl.directory / "file.rst").is_file():
# File.rst exist
```

We would have to subclass `PurePath` class.

Contributor guide

Open the contributing guide

Research direction

Start by locating the implementation of mapdl.directory and reviewing how it currently represents the directory. Read Python's PurePath behavior, then determine the scope needed for path joining and is_file() checks; the work is done when the example in the issue works and relevant behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.