Ameba Ownd

アプリで簡単、無料ホームページ作成

Perl check file attributes

2022.01.16 00:41




















By joining you are opting in to receive e-mail. Promoting, selling, recruiting, coursework and thesis posting is forbidden.


Students Click Here. I am trying to query a file, which happens to be an. I am using something like this little sipnet of code. Help please! Thanks in advance.. Any ideas? Thanks oinky. Do you know how to get the returned value of the SetAttributes command. There are other numbers for different attributes, hidden is 35 etc.


So the above code just checks to see if the file is readonly, if so make it normal. If you find a problem, file a ticket in the issue tracker :. Although I'm happy to hear from module users in private email, that's the best way for me to forget to do something. Besides the issue trackers, you can find help at Perlmonks or Stackoverflow , both of which have many competent Perlers who can answer your question, almost in real time. They might not know the particulars of this module, but they can help you diagnose your problem.


About the only thing you can't do is pretend that you wrote code that you didn't. Skip to content. Star Perl Check file attributes metacpan. View license. Branches Tags. Could not load branches. Dan Olson Dan Olson. To google -M , add the quotes "-M", since -X removes results having X By the way, '-M' is what the OP wants. Explanation of the difference between -M content modification and -C inode change : unix.


You could use stat or the File::Stat module. Chris Kloberdanz Chris Kloberdanz 4, 4 4 gold badges 29 29 silver badges 31 31 bronze badges. I think you're looking for the stat function perldoc -f stat In particular, the item found at index 9 of the returned list i.


Lee Lee 1 1 silver badge 6 6 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science.


Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked 0. Related Hot Network Questions.