Questions tagged [file-attributes]
The file-attributes tag has no usage guidance.
115
questions
0
votes
4
answers
94
views
Can permissions and/or extended attributes lead to data loss? [closed]
This is related to having a portable drive in a format to be accessible for read and write in different operating systems. For example NTFS can be accessed in windows of course, in Linux quite easily ...
0
votes
0
answers
47
views
Notepad++ does not detect attribute change from read-only to writable
My Notepad++ v8.5.1 does not recognize when an opened file changes from read-only to writable (by checking out in ClearCase). It still simply does not edit when typing.
Even Reload / Reload from Disk ...
0
votes
1
answer
101
views
Attribute Changer 11
I have downloaded the Attribute Changer 11 but I've got stuck it has failed for some reasons on my mp3 file:
ZAČÁTEK ZPRACOVÁNÍ : 20:24:29
C:\Users\me\Desktop\Operads2\SPANEK\s_Ritual.mp3
selhalo=...
2
votes
0
answers
115
views
Does anyone have a way of Exporting File 'Creation Date' and 'Modified Date' in order to restore this data onto files from a backup
I am able to get the data I want using PowerShell:
gci -path .\ -recurse | sort name | select name, LastWriteTime, creationtime
The issue here is, I have an online backup solution. When you restore ...
0
votes
0
answers
45
views
Cannot deal with some files even as a su: "-rw-r--r--" vs "-rw-r--r-"
I have a few files that I cannot deal with
(e.g. head filename gives me head: filename: Permission denied).
xattr with these files shows / does nothing.
Here is an example session:
vlad@MacBook-03:~/...
1
vote
1
answer
2k
views
Folder icon, desktop.ini and file attributes
When we set custom icons for folders, a desktop.ini file will be generated in it with the following structure:
[.ShellClassInfo]
IconResource=${path to the icon file},0
[ViewState]
Mode=
Vid=
...
0
votes
0
answers
184
views
Add attribute to a file/folder
I tried that to add an attribute to a file/folder
Get-ChildItem '$PATH' -Recurse | foreach{$_.Attributes = $_.Attributes + 'Compressed'}
Problem is that it create a cycle like that : Not compressed &...
0
votes
1
answer
23
views
Identifying files which were created on my local system at a certain date, despite "Date created" metadata retained from installer
I've installed a program, and all the files the installer created have identical "date created" and "date modified" metadata, indicating the date that the file was last modified by ...
1
vote
0
answers
598
views
In windows 10 is there a way to have different color or font for read only files
I'm trying to know if windows 10 File Explorer allows showing a different color or different font in the file name or icon depending on the attributes of that file.
Example:
Attribute "Archive&...
1
vote
0
answers
304
views
Use ATTRIB command over a batch itself
Well, this is the thing, i have this in my batch file:
attrib +R +H +S "%STARTUP%\%0"
icacls "%STARTUP%\%0" /deny *S-1-1-0:^(DE,WA^) *S-1-5-7:^(DE,WA^)
attrib +R "%STARTUP%\%0&...
0
votes
0
answers
562
views
Use robocopy to copy without attributes for files and directories
I'm trying to run robocopy to copy data but not copying attributes (timestamps are ok).
My first thought was to run with these switches: /copy:dt /dcopy:t
The way I interpret the documentation, those ...
1
vote
1
answer
88
views
The arguments "/S" and "/L" of the command ATTRIB won't work
I'm creating a program where I need to make all folders and files, in a given directory, invisible. For that, I'm using the CMD's command ATTRIB, with the arguments /S /D, as well as in the code below:...
1
vote
1
answer
197
views
How do I find all files in subfolders that are missing a specific property?
On my main Windows 10 machine, I take a lot of video game screenshots with Steam. Within Steam's screenshot folder (Steam\userdata\<user_id>\760\remote), it creates a new folder for every game, ...
2
votes
1
answer
3k
views
How to clear the "date last opened" attribute on macOS Big Sur
I am trying to clear this extended attribute for all the files located in the Recents smart folder. They are ordered by the "date last opened" attribute. I am trying to clear this attribute ...
1
vote
1
answer
579
views
How to use keyboard shortcuts for hidden desktop shortcuts/icons?
I created a shortcut on the desktop and assigned a Keyboard Shortcut to it from the properties menu to it. Now if I assign the hidden attribute, the shortcut gets hidden and Keyboard shortcut stops ...
0
votes
3
answers
5k
views
Accidentally deleted .Trashes folder. What should I do?
When I unhid all the hidden files and folders on my external flash drive, I accidentally deleted the entire .Trashes folder.
I searched about it online and I got the answer that this "Trashes&...
0
votes
1
answer
680
views
How do I reverse attrib settings to default?
How do I reverse attrib settings to default? I put the command "ATTRIB -H -R -S /S /D X:." (X = Drive letter) and now it shows hidden files and folders. I then put the command "ATTRIB +...
2
votes
3
answers
3k
views
In Windows, how do I list the extended attributes — or metadata — for an MP3 file?
I have multiple folders with MP3 files. Some files are duplicates but in separate folders.
I want to create printable list of extended attributes — or metadata — to retain the file with the highest ...
3
votes
0
answers
3k
views
Renaming a file in Explorer Win10 does not change modified date
This is something that never occurred to me but I noticed that when I rename a file its modified attribute will remains unchanged. This happens on multiple devices I tested it on (Win10, NTFS) and for ...
0
votes
1
answer
880
views
Bulk edit SFX script
I create custom portable versions of apps using WinRAR's SFX module (among other things, the setup option Run after extraction). In the cases where 32-bit / x86 and 64-bit / x64 versions are available,...
2
votes
0
answers
277
views
Retain xattrs in files (macOS files on Linux SMB server)
I run an SMB4 server on Ubuntu Server 19.04 using ZFS as the server file system (separate from the boot drive). I use this server to store files from my Macs (10.7, 10.8, 10.11, 10.12, 10.13, 10.14). ...
0
votes
0
answers
56
views
Folder's "system" attribute disappears after copying to USB drive
I have a "Desktop.ini" file in a specific folder. I define the folder as a system folder using
cmd : attrib +s folder
and everything works well. But when I copy the folder to a USB drive, my folder ...
3
votes
1
answer
428
views
How to list only files with a specific extended attribute in macOS?
I have a directory with about 10,000 files and I'm using ls to list the files.
However, I want to list only the files that have the com.example.mycolor extended attribute set.
What I tried:
ls -l@ |...
11
votes
1
answer
2k
views
What are "project IDs" in linux, as mentioned in the chattr manual?
I was reading through the manual for chattr on my Linux machine (kali4-amd64) when I saw this in the list of definitions of file attributes:
A directory with the 'P' attribute set will enforce a ...
1
vote
0
answers
472
views
Fix Deleting the files but not it's extended attribute
I am trying to deleted empty folder but with not luck after some searching i seem to me that i have deleted the files in those folder but not it's extended attribute
amr@MacBook ~/folders> ls -la ...
0
votes
0
answers
7k
views
how to change files into folders (Windows 10)
I was using autoit to rename folders, and I used FileMove instead of DirMove. It did move all the data from the folder, but wrote the destination folder as a FILE - Without the D attribute - so ...
2
votes
2
answers
270
views
Exclude system entries with "ls" or "find"
Compare Cygwin:
$ ls -1 -N /cygdrive/c
$Recycle.Bin
cygwin64
Documents and Settings
pagefile.sys
PerfLogs
Program Files
Program Files (x86)
ProgramData
Recovery
System Volume Information
Users
...
3
votes
1
answer
2k
views
How do I delete ~/Library/Mail with a com.apple.quarantine extended attribute?
I'm running macOS Mojave 10.14. Mail.app and our Exchange server periodically quit talking to one another. The primary symptom of this is that the Inbox shows nothing even though webmail and my ...
2
votes
1
answer
484
views
batch change date of all files in dir based on name order [closed]
I have a lot of images sorted according to their filenames: img1.jpg, img2.jpg ...
I need to change the file date which is now the same on all images so that img1.jpg date is before img2.jpg etc
I ...
2
votes
0
answers
252
views
What are the most reliable attributes for comparing two files in order to confirm/verify they are 100% identical?
I had the following situation:
I copied 5.5 TB worth of data (in total over 100,000 directories and 10 million files) from an old disk to a newly-purchased external disk.
I used Ultracopier on ...
4
votes
3
answers
2k
views
How do I see and set the NTFS compression attribute in Linux?
Browsing an NTFS partition in Konqueror or Dolphin, the compressed files and folders are not displayed with blue names, and there doesn't seem to be any page in the file properties dialog to see or ...
1
vote
3
answers
1k
views
What does "read only" and "non executable" means for Folders?
Talking about authorizations, I know what "read only" and "non executable" would mean for a file.
But what do those two mean for a folder? And how can I change those access authorizations?
Somehow ...
6
votes
2
answers
4k
views
How to clear (remove) macos extended attributes recursively from a directory?
I downloaded and extracted an archive from GitHub (Homebrew/brew) into a temporary directory under /root (with help from sudo). If I do ls -l I see an extended attribute:
total 0
drwxr-xr-x@ 16 root ...
1
vote
0
answers
477
views
Copy file attributes with ffmpeg
I'm using the following command to remux audio with ffmpeg (i.e. to copy audio stream to another video file):
ffmpeg -i ../../data/1.mp4 -i out.avi -c copy -map 0:0 -map 1:0 -shortest out.mp4
Is ...
2
votes
1
answer
880
views
Windows batch command to assign specific time/date stamp to files
I know how to assign the current time and date to a file using copy /b filename.ext +,, but how can I assign it a different time and date, as in this variable: set DateTime=01/01/1970 03:00 AM?
11
votes
1
answer
4k
views
Chrome crashpad crashes on xattr
I have a macos High Sierra 10.13.3. When running Chrome in headless mode to execute automated tests, I get this error:
[0207/114344.742771:ERROR:xattr.cc(64)] setxattr org.chromium.crashpad.database....
0
votes
0
answers
2k
views
Why doesn't "xattr -w com.apple.FinderInfo /opt" work?
I'm trying to add the com.apple.FinderInfo extended attribute to my /opt directory so that it will show up as an installable folder for installing packages on MacOS 10.13.2 High Sierra. I tried ...
1
vote
1
answer
294
views
Windows encrypt folder: Some files not encrypted
I did following two things to encrypt all the content of a root folder named "Foo":
The "Foo" folder has many levels of sub-directories with each having multiple files. All of the files in Foo were ...
-1
votes
1
answer
2k
views
Windows 10 showing "attrib +h" files
I recently bought a new tower that has the Windows 10 OS on it. I am facing one issue with it right now.
Back in Windows 7 I was able to hide files and folders completely thanks to the CMD function ...
0
votes
1
answer
55
views
OS X Sierra, "Pictures" folder hijacked by an application - how to fix?
A crummy application (MacFamilyTree) somehow hijacked my system's "Pictures" folder. It thinks it's an application now, and has acquired an 'Open with:' panel in the GetInfo window. There's no way to ...
1
vote
0
answers
125
views
Earliest possible date for a folder / file attribute? [duplicate]
Just for some context, so people understand why I'm doing what I'm doing...
My movie collection is stored in this fashion;
Movies (folder)
|---- Movie title, Year released (folder)
|---- ...
0
votes
0
answers
136
views
What just happened to my Windows PC? icons don't show; all folders are read-only
Since yesterday my PC has been behaving oddly. The basic symptoms are:
Scripts that worked earlier in the day now fail with file/folder permission errors. More specifically, this error in NodeJS (...
1
vote
1
answer
432
views
What does the `I` mean in `attrib` output?
The following image is a screenshot after I typed attrib in C:
What does the I mean?
13
votes
3
answers
9k
views
What do new Windows 8/10 attributes mean: No scrub file (X), Integrity (V), Pinned (P), Unpinned (U)
I just opened help for ATTRIB command on Windows 10.0.15063, and found out that there are new attributes I didn't know about.
>attrib /?
Displays or changes file attributes.
ATTRIB [+R | -R] [+A |...
1
vote
1
answer
587
views
Run attrib on a folder in Linux
I have a strange question: if I install wine on Linux will I be able to do a shell exec in php to add the proper attributes to a folder so when it is transferred to Windows it is hidden?
For example: ...
1
vote
2
answers
48
views
How to create a file that has the properties of another and links to it when opened?
I wonder if anyone knows if it is possible in Windows 7 to create a file (let's call it a source file) that represents another file, has it's properties (including size), but when opened actually ...
1
vote
0
answers
53
views
How determine when last time USB hard/flash drive was read/written to?
I am trying to determine when a file was last written to a USB hard/flash drive. An image was restored to a USB hard drive using this USB image tool.
The modification/creation dates are old since the ...
0
votes
1
answer
48
views
Hiding Files in windows 8.1
I am trying to hide a whole directory, say, I have a folder named x with files y, z and folders 1 and 2 that contain, respectively, files 3 and 4... When I try to hide the whole X directory, but some ...
16
votes
6
answers
29k
views
Can a file appear to be modified before it was created? [duplicate]
Is it possible to have a file which has a modified date that is before its created date? What actions would cause this event to occur?
0
votes
1
answer
218
views
Regarding files resulted in equating file properties in "ls" command
I have a folder in which there are thousands of images. Of those thousand images, I want to bring together all those images whose “Last created” and “Last modified” properties are exactly same.
( In ...