Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename.pl reporting success when no permission & failure #1

Open
hepcat72 opened this issue Oct 31, 2018 · 0 comments
Open

rename.pl reporting success when no permission & failure #1

hepcat72 opened this issue Oct 31, 2018 · 0 comments

Comments

@hepcat72
Copy link
Owner

hepcat72 commented Oct 31, 2018

I added an error when the target file name doesn't exist after the rename is done. This file is in a directory without write permission to me. I also don't have permission to write to the file (i.e. cannot delete):

Renaming [291_DG3-read-4.fastqsanger] to [DG3-read-4.fastqsanger].
ERROR:/Genomics/grid/users/rleach/pub/filetools/rename.pl:LINE192: Unable to rename [291_DG3-read-4.fastqsanger].  No such file or directory

Before I added that code, the script was telling me it was successfully renaming that fiule (and all the other files).

E.g.

cp 202_DG1-read-3.fastqsanger DG1-read-3.fastqsanger
cp: cannot create regular file `DG1-read-3.fastqsanger': Permission denied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant