129 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
2
answers
163
views
How to determine if 2 instances of java.nio.file.Path are pointing to the same file?
I have a simple problem -- I have multiple threads that are doing appends to a file, based upon a file name that the user can choose.
At first, I tried to synchronize on instances of Path, but after ...
0
votes
3
answers
229
views
absolute path if PWD itself is a symlink
I have following folder structure created via mkdir -p foo subdir/bar && ln -s subdir/bar bar
├── bar -> subdir/bar
├── foo
└── subdir
└── bar
when working in bar folder: How can I ...
2
votes
1
answer
568
views
VueJS + Vite runs into error on build. Error: EINVAL: invalid argument, realpath
We have a problem in our NodeJS environment on the servers of ProfiHost (German provider) using Vite in a VueJS app.
Installing the deps via npm i works fine. However, the build via npm run build ...
1
vote
1
answer
2k
views
how to use bash variable with realpath command in a script?
realpath ~/test outputs /home/<user>/test.
Now, I have to use this in my bash script, so I have the path stored in a variable.
If I run the below commands in my shell it works.
export REMOTE_DIR=...
0
votes
1
answer
1k
views
Cannot get real path of some images on Android API 33
I have a strange situation and not sure how to debug further. I need to get the real path of a selected image from the gallery so I can upload it to a server via an API. It works perfectly that I ...
1
vote
1
answer
927
views
realpath throws undefined reference to realpath
Im trying to get the path of text file , when i use the method "realpath" & #include<stdlib.h> ,the compiler gives me an error message :"undefined reference to realpath"
0
votes
1
answer
409
views
C realpath return NULL vector, can't find the path
I wanted a function to return the absolute path given a relative path to an existing file.
Searching online I came across realpath here: https://stackoverflow.com/a/229038/19637794
And followed the ...
0
votes
1
answer
280
views
How to read from a file when passing path as an argument using realpath()
I want to pass an argument of a specific file location using realpath() (example: /var/log/message) and by using fprintf print the content of this file on the terminal.
This is the code I have so far:
...
0
votes
0
answers
322
views
PHP realpath function doesn't see (returns false) on the mounted directory in the arm64 docker service
I have two amazon EC2 instances with different CPU architectures.
x86_64 ubuntu 20.04
arm64 ubuntu 22.04
Both are running the same docker service. However, each service is based on the corresponding ...
0
votes
1
answer
128
views
bash get relative path from absoulte
This line gets absolute path, i used output to pass it to rsync, but rsync wants relative path
find /www-data/ -type f -exec sh -c 'if ! lsof `readlink -f {}` > /dev/null; then echo `realpath {}`; ...
0
votes
0
answers
1k
views
How can I make bash realpath work with variables?
I run
#!/bin/bash
id="~/.ssh/foo"
realpath ~/.ssh/foo
realpath "~/.ssh/foo"
realpath $id
realpath "$id"
expecting 4 identical lines of output, with no errors. What I ...
1
vote
2
answers
2k
views
Unable to pick file (pdf, doc, docx) from download folder in Android 11 and above
I'm using the File Picker library.
Permission code:
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R || Environment.isExternalStorageManager()) {
//Toast.makeText(this, ...
2
votes
0
answers
455
views
What's the behind magic of python os.path.realpath?
Recently, I tried to install pypoetry on my windows. The python I used was installed from MS store. And I found something strange.
C:\Users\Liu.D.H>where python
C:\Users\Liu.D.H\AppData\Local\...
1
vote
2
answers
699
views
Error installing realpath on Mac running High Sierra
Trying to install on High Sierra:
$ sudo /opt/local/bin/port install realpath
---> Fetching archive for realpath
---> Attempting to fetch realpath-1.0.1_1.darwin_17.x86_64.tbz2 from https://...
0
votes
0
answers
2k
views
Getting error '/usr/bin/bash: line 1: realpath: command not found' when install JAX with CUDA
I am trying to build JAX with CUDA from source on my windows laptop. I have installed MSYS2.
I am following the instructions given here
However, I am unable to install realpath using pacman -S patch ...